@@ -187,7 +187,7 @@ describe('annotations relayout', function() {
187
187
expect ( typeof MathJax ) . toBe ( 'undefined' ) ;
188
188
mockLayout . annotations [ 14 ] . text = '$x+y+z$' ;
189
189
190
- Plotly . plot ( gd , mockData , mockLayout )
190
+ Plotly . newPlot ( gd , mockData , mockLayout )
191
191
. then ( function ( ) {
192
192
spyOn ( Loggers , 'warn' ) ;
193
193
@@ -512,7 +512,7 @@ describe('annotations log/linear axis changes', function() {
512
512
var mockData = Lib . extendDeep ( [ ] , mock . data ) ;
513
513
var mockLayout = Lib . extendDeep ( { } , mock . layout ) ;
514
514
515
- Plotly . plot ( gd , mockData , mockLayout ) . then ( done ) ;
515
+ Plotly . newPlot ( gd , mockData , mockLayout ) . then ( done ) ;
516
516
} ) ;
517
517
518
518
afterEach ( destroyGraphDiv ) ;
@@ -667,7 +667,7 @@ describe('annotations autorange', function() {
667
667
}
668
668
669
669
it ( 'should adapt to relayout calls' , function ( done ) {
670
- Plotly . plot ( gd , mock ) . then ( function ( ) {
670
+ Plotly . newPlot ( gd , mock ) . then ( function ( ) {
671
671
assertRanges (
672
672
[ 0.91 , 2.09 ] , [ 0.91 , 2.09 ] ,
673
673
[ '2000-11-13' , '2001-04-21' ] , [ - 0.069 , 3.917 ] ,
@@ -756,7 +756,7 @@ describe('annotations autorange', function() {
756
756
} ) ;
757
757
758
758
it ( 'catches bad xref/yref' , function ( done ) {
759
- Plotly . plot ( gd , mock ) . then ( function ( ) {
759
+ Plotly . newPlot ( gd , mock ) . then ( function ( ) {
760
760
return Plotly . relayout ( gd , { 'annotations[1]' : {
761
761
text : 'LT' ,
762
762
x : - 1 ,
@@ -787,7 +787,7 @@ describe('annotations autorange', function() {
787
787
expect ( fullLayout . yaxis . range ) . toBeCloseToArray ( yrng , 1 , msg + ' yrng' ) ;
788
788
}
789
789
790
- Plotly . plot ( gd , [ { y : [ 1 , 2 ] } ] , {
790
+ Plotly . newPlot ( gd , [ { y : [ 1 , 2 ] } ] , {
791
791
xaxis : { range : [ 0 , 2 ] } ,
792
792
yaxis : { range : [ 0 , 2 ] } ,
793
793
annotations : [ {
@@ -818,7 +818,7 @@ describe('annotations autorange', function() {
818
818
} ) ;
819
819
820
820
it ( 'should not error out on subplots w/o visible traces' , function ( done ) {
821
- Plotly . plot ( gd , [ { } ] , {
821
+ Plotly . newPlot ( gd , [ { } ] , {
822
822
annotations : [ {
823
823
x : 0.1 ,
824
824
y : 0.1 ,
@@ -931,7 +931,7 @@ describe('annotation clicktoshow', function() {
931
931
932
932
it ( 'should select only clicktoshow annotations matching x, y, and axes of any point' , function ( done ) {
933
933
// first try to select without adding clicktoshow, both visible and invisible
934
- Plotly . plot ( gd , data , layout ( ) )
934
+ Plotly . newPlot ( gd , data , layout ( ) )
935
935
// clicktoshow is off initially, so it doesn't *expect* clicking will
936
936
// do anything, and it doesn't *actually* do anything.
937
937
. then ( clickAndCheck ( { newPts : [ [ 1 , 2 ] ] , newCTS : false , on : allIndices , step : 1 } ) )
@@ -968,7 +968,7 @@ describe('annotation clicktoshow', function() {
968
968
} ) ;
969
969
970
970
it ( 'works on date and log axes' , function ( done ) {
971
- Plotly . plot ( gd , [ {
971
+ Plotly . newPlot ( gd , [ {
972
972
x : [ '2016-01-01' , '2016-01-02' , '2016-01-03' ] ,
973
973
y : [ 1 , 1 , 3 ]
974
974
} ] , {
@@ -992,7 +992,7 @@ describe('annotation clicktoshow', function() {
992
992
} ) ;
993
993
994
994
it ( 'works on category axes' , function ( done ) {
995
- Plotly . plot ( gd , [ {
995
+ Plotly . newPlot ( gd , [ {
996
996
x : [ 'a' , 'b' , 'c' ] ,
997
997
y : [ 1 , 2 , 3 ]
998
998
} ] , {
@@ -1039,7 +1039,7 @@ describe('annotation effects', function() {
1039
1039
// we've already tested autorange with relayout, so fix the geometry
1040
1040
// completely so we know exactly what we're dealing with
1041
1041
// plot area is 300x300, and covers data range 100x100
1042
- return Plotly . plot ( gd ,
1042
+ return Plotly . newPlot ( gd ,
1043
1043
[ { x : [ 0 , 100 ] , y : [ 0 , 100 ] , mode : 'markers' } ] ,
1044
1044
{
1045
1045
xaxis : { range : [ 0 , 100 ] } ,
@@ -1635,7 +1635,7 @@ describe('annotation effects', function() {
1635
1635
} ;
1636
1636
}
1637
1637
1638
- Plotly . plot ( gd , [ {
1638
+ Plotly . newPlot ( gd , [ {
1639
1639
x : [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ,
1640
1640
y : [ 0 , 4 , 5 , 1 , 2 , 2 , 3 , 4 , 2 ] ,
1641
1641
} ] , {
@@ -1719,7 +1719,7 @@ describe('animating annotations', function() {
1719
1719
} ) ;
1720
1720
}
1721
1721
1722
- Plotly . plot ( gd ,
1722
+ Plotly . newPlot ( gd ,
1723
1723
[ { y : [ 1 , 2 , 3 ] } ] ,
1724
1724
{
1725
1725
annotations : [ { text : 'hello' } ] ,
0 commit comments