Marek Bukowicki commited on
Commit
597e7d8
·
1 Parent(s): e7def11

reverse x-axis in gui plot

Browse files
Files changed (1) hide show
  1. predict-gui.py +3 -1
predict-gui.py CHANGED
@@ -121,7 +121,9 @@ def process_file(input_file, config_file, weights_file, input_spectrometer_frequ
121
  xaxis_title="Frequency (ppm)",
122
  yaxis_title="Intensity"
123
  )
124
-
 
 
125
  return fig, output_file
126
 
127
  # Gradio app
 
121
  xaxis_title="Frequency (ppm)",
122
  yaxis_title="Intensity"
123
  )
124
+ # reverse x-axis
125
+ fig.update_xaxes(autorange="reversed")
126
+
127
  return fig, output_file
128
 
129
  # Gradio app