hlnicholls commited on
Commit
7bbae35
·
1 Parent(s): 248911f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -149,7 +149,7 @@ if len(gene_list) > 1:
149
  plotly_fig['data'][i]['text'] = t
150
  plotly_fig['data'][i]['hoverinfo'] = 'text'
151
  colorbar_trace = go.Scatter(x=[None],
152
- y=[None],
153
  mode='markers',
154
  marker=dict(
155
  colorscale=red_blue,
@@ -161,11 +161,11 @@ if len(gene_list) > 1:
161
  hoverinfo='none'
162
  )
163
  plotly_fig['layout']['showlegend'] = False
164
- plotly_fig['layout']['hovermode'] = 'closest'
165
  plotly_fig['layout']['height']=600
166
  plotly_fig['layout']['width']=500
167
  plotly_fig['layout']['xaxis'].update(zeroline=True, showline=True, ticklen=4, showgrid=False)
168
- plotly_fig['layout']['yaxis'].update(dict(ticktext = col_order, visible=True))
169
  plotly_fig.add_trace(colorbar_trace)
170
  plotly_fig.layout.update(
171
  annotations=[dict(
@@ -180,7 +180,6 @@ if len(gene_list) > 1:
180
  yanchor="middle",
181
  textangle=-90,
182
  font=dict(family='Calibri', size=14),
183
- yaxis=dict(ticktext = col_order),
184
  )
185
  ],
186
  margin=dict(t=20)
 
149
  plotly_fig['data'][i]['text'] = t
150
  plotly_fig['data'][i]['hoverinfo'] = 'text'
151
  colorbar_trace = go.Scatter(x=[None],
152
+ y=col_order, # [None],
153
  mode='markers',
154
  marker=dict(
155
  colorscale=red_blue,
 
161
  hoverinfo='none'
162
  )
163
  plotly_fig['layout']['showlegend'] = False
164
+ plotly_fig['layout']['hovermode'] = 'closest'
165
  plotly_fig['layout']['height']=600
166
  plotly_fig['layout']['width']=500
167
  plotly_fig['layout']['xaxis'].update(zeroline=True, showline=True, ticklen=4, showgrid=False)
168
+ plotly_fig['layout']['yaxis'].update(dict(visible=True))
169
  plotly_fig.add_trace(colorbar_trace)
170
  plotly_fig.layout.update(
171
  annotations=[dict(
 
180
  yanchor="middle",
181
  textangle=-90,
182
  font=dict(family='Calibri', size=14),
 
183
  )
184
  ],
185
  margin=dict(t=20)