@@ -187,7 +187,7 @@ describe('annotations relayout', function() {
187187 expect ( typeof MathJax ) . toBe ( 'undefined' ) ;
188188 mockLayout . annotations [ 14 ] . text = '$x+y+z$' ;
189189
190- Plotly . plot ( gd , mockData , mockLayout )
190+ Plotly . newPlot ( gd , mockData , mockLayout )
191191 . then ( function ( ) {
192192 spyOn ( Loggers , 'warn' ) ;
193193
@@ -512,7 +512,7 @@ describe('annotations log/linear axis changes', function() {
512512 var mockData = Lib . extendDeep ( [ ] , mock . data ) ;
513513 var mockLayout = Lib . extendDeep ( { } , mock . layout ) ;
514514
515- Plotly . plot ( gd , mockData , mockLayout ) . then ( done ) ;
515+ Plotly . newPlot ( gd , mockData , mockLayout ) . then ( done ) ;
516516 } ) ;
517517
518518 afterEach ( destroyGraphDiv ) ;
@@ -667,7 +667,7 @@ describe('annotations autorange', function() {
667667 }
668668
669669 it ( 'should adapt to relayout calls' , function ( done ) {
670- Plotly . plot ( gd , mock ) . then ( function ( ) {
670+ Plotly . newPlot ( gd , mock ) . then ( function ( ) {
671671 assertRanges (
672672 [ 0.91 , 2.09 ] , [ 0.91 , 2.09 ] ,
673673 [ '2000-11-13' , '2001-04-21' ] , [ - 0.069 , 3.917 ] ,
@@ -756,7 +756,7 @@ describe('annotations autorange', function() {
756756 } ) ;
757757
758758 it ( 'catches bad xref/yref' , function ( done ) {
759- Plotly . plot ( gd , mock ) . then ( function ( ) {
759+ Plotly . newPlot ( gd , mock ) . then ( function ( ) {
760760 return Plotly . relayout ( gd , { 'annotations[1]' : {
761761 text : 'LT' ,
762762 x : - 1 ,
@@ -787,7 +787,7 @@ describe('annotations autorange', function() {
787787 expect ( fullLayout . yaxis . range ) . toBeCloseToArray ( yrng , 1 , msg + ' yrng' ) ;
788788 }
789789
790- Plotly . plot ( gd , [ { y : [ 1 , 2 ] } ] , {
790+ Plotly . newPlot ( gd , [ { y : [ 1 , 2 ] } ] , {
791791 xaxis : { range : [ 0 , 2 ] } ,
792792 yaxis : { range : [ 0 , 2 ] } ,
793793 annotations : [ {
@@ -818,7 +818,7 @@ describe('annotations autorange', function() {
818818 } ) ;
819819
820820 it ( 'should not error out on subplots w/o visible traces' , function ( done ) {
821- Plotly . plot ( gd , [ { } ] , {
821+ Plotly . newPlot ( gd , [ { } ] , {
822822 annotations : [ {
823823 x : 0.1 ,
824824 y : 0.1 ,
@@ -931,7 +931,7 @@ describe('annotation clicktoshow', function() {
931931
932932 it ( 'should select only clicktoshow annotations matching x, y, and axes of any point' , function ( done ) {
933933 // first try to select without adding clicktoshow, both visible and invisible
934- Plotly . plot ( gd , data , layout ( ) )
934+ Plotly . newPlot ( gd , data , layout ( ) )
935935 // clicktoshow is off initially, so it doesn't *expect* clicking will
936936 // do anything, and it doesn't *actually* do anything.
937937 . then ( clickAndCheck ( { newPts : [ [ 1 , 2 ] ] , newCTS : false , on : allIndices , step : 1 } ) )
@@ -968,7 +968,7 @@ describe('annotation clicktoshow', function() {
968968 } ) ;
969969
970970 it ( 'works on date and log axes' , function ( done ) {
971- Plotly . plot ( gd , [ {
971+ Plotly . newPlot ( gd , [ {
972972 x : [ '2016-01-01' , '2016-01-02' , '2016-01-03' ] ,
973973 y : [ 1 , 1 , 3 ]
974974 } ] , {
@@ -992,7 +992,7 @@ describe('annotation clicktoshow', function() {
992992 } ) ;
993993
994994 it ( 'works on category axes' , function ( done ) {
995- Plotly . plot ( gd , [ {
995+ Plotly . newPlot ( gd , [ {
996996 x : [ 'a' , 'b' , 'c' ] ,
997997 y : [ 1 , 2 , 3 ]
998998 } ] , {
@@ -1039,7 +1039,7 @@ describe('annotation effects', function() {
10391039 // we've already tested autorange with relayout, so fix the geometry
10401040 // completely so we know exactly what we're dealing with
10411041 // plot area is 300x300, and covers data range 100x100
1042- return Plotly . plot ( gd ,
1042+ return Plotly . newPlot ( gd ,
10431043 [ { x : [ 0 , 100 ] , y : [ 0 , 100 ] , mode : 'markers' } ] ,
10441044 {
10451045 xaxis : { range : [ 0 , 100 ] } ,
@@ -1635,7 +1635,7 @@ describe('annotation effects', function() {
16351635 } ;
16361636 }
16371637
1638- Plotly . plot ( gd , [ {
1638+ Plotly . newPlot ( gd , [ {
16391639 x : [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ,
16401640 y : [ 0 , 4 , 5 , 1 , 2 , 2 , 3 , 4 , 2 ] ,
16411641 } ] , {
@@ -1719,7 +1719,7 @@ describe('animating annotations', function() {
17191719 } ) ;
17201720 }
17211721
1722- Plotly . plot ( gd ,
1722+ Plotly . newPlot ( gd ,
17231723 [ { y : [ 1 , 2 , 3 ] } ] ,
17241724 {
17251725 annotations : [ { text : 'hello' } ] ,
0 commit comments