@@ -101,6 +101,7 @@ def get_markdown(text, args={}):
101
101
"""
102
102
Converts a given text into a Dash Markdown component. It includes a syntax for things
103
103
like bold text and italics, links, inline code snippets, lists, quotes, and more.
104
+
104
105
For more information visit https://dash.plot.ly/dash-core-components/markdown.
105
106
106
107
:param str text: markdown string (or array of strings) that adhreres to the CommonMark spec.
@@ -665,7 +666,7 @@ def get_scatterplot_matrix(data, identifier, args):
665
666
for g in data [group ].unique ():
666
667
gdata = data [data [group ] == g ].dropna ()
667
668
gfig = get_simple_scatterplot (gdata , identifier + "_" + str (g ), args )
668
- trace = gfig . figure ["data" ].pop ()
669
+ trace = gfig ["data" ].pop ()
669
670
trace .name = g
670
671
fig .append_trace (trace , r , c )
671
672
@@ -690,7 +691,7 @@ def get_scatterplot_matrix(data, identifier, args):
690
691
dict (xref = "paper" , yref = "paper" , showarrow = False , text = "" )
691
692
]
692
693
693
- return dcc . Graph ( id = identifier , figure = fig )
694
+ return fig
694
695
695
696
696
697
def get_simple_scatterplot (data , identifier , args ):
@@ -781,7 +782,7 @@ def get_simple_scatterplot(data, identifier, args):
781
782
template = "plotly_white" ,
782
783
)
783
784
784
- return dcc . Graph ( id = identifier , figure = figure )
785
+ return figure
785
786
786
787
787
788
def get_scatterplot (data , identifier , args ):
@@ -916,7 +917,7 @@ def get_scatterplot(data, identifier, args):
916
917
template = "plotly_white" ,
917
918
)
918
919
919
- return dcc . Graph ( id = identifier , figure = figure )
920
+ return figure
920
921
921
922
922
923
def get_density (x : np .ndarray , y : np .ndarray ):
@@ -1986,7 +1987,7 @@ def get_pca_plot(data, identifier, args):
1986
1987
figure = {}
1987
1988
traces = []
1988
1989
annotations = []
1989
- sct = get_scatterplot (pca_data , identifier , args ). figure
1990
+ sct = get_scatterplot (pca_data , identifier , args )
1990
1991
traces .extend (sct ["data" ])
1991
1992
figure ["layout" ] = sct ["layout" ]
1992
1993
factor = 50
@@ -2035,7 +2036,7 @@ def get_pca_plot(data, identifier, args):
2035
2036
figure ["layout" ].annotations = annotations
2036
2037
figure ["layout" ]["template" ] = "plotly_white"
2037
2038
2038
- return dcc . Graph ( id = identifier , figure = figure )
2039
+ return figure
2039
2040
2040
2041
2041
2042
def get_sankey_plot (
0 commit comments