Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • software_public/passoft/sohstationviewer
1 result
Show changes
Commits on Source (4)
Showing
with 80 additions and 11 deletions
......@@ -4,6 +4,8 @@ Welcome to the SOH Station Viewer documentation. Here you will find usage guides
On the left-hand side you will find a list of currently available help topics.
If the links of the Table of Contents are broken, click on Recreate Table of Content <img src='recreate_table_contents.png' height=30 style='margin: 3px 0px 0px 0px;'/> to rebuild it.
The home button can be used to return to this page at any time.
# Table of Contents
......@@ -14,19 +16,23 @@ The home button can be used to return to this page at any time.
+ [How to Use Help](03%20_%20How%20to%20Use%20Help.help.md)
+ [Search SOH n LOG](04%20_%20Search%20SOH%20n%20LOG.help.md)
+ [Search List of Directories](04%20_%20Search%20List%20of%20Directories.help.md)
+ [Read from Data Card](05%20_%20Read%20from%20Data%20Card.help.md)
+ [Select SOH](06%20_%20Select%20SOH.help.md)
+ [Search List of Directories](05%20_%20Search%20List%20of%20Directories.help.md)
+ [Select Mass Position](07%20_%20Select%20Mass%20Position.help.md)
+ [Read from Data Card](06%20_%20Read%20from%20Data%20Card.help.md)
+ [Select Waveforms](08%20_%20Select%20Waveforms.help.md)
+ [Select SOH](07%20_%20Select%20SOH.help.md)
+ [Gap Display](09%20_%20Gap%20Display.help.md)
+ [Select Mass Position](08%20_%20Select%20Mass%20Position.help.md)
+ [Change TPS Color Range](10%20_%20Change%20TPS%20Color%20Range.help.md)
+ [Select Waveforms](09%20_%20Select%20Waveforms.help.md)
+ [Save Plots](11%20_%20Save%20Plots.help.md)
+ [Gap Display](10%20_%20Gap%20Display.help.md)
+ [Search SOH n LOG](12%20_%20Search%20SOH%20n%20LOG.help.md)
+ [GPS Dialog](20%20_%20GPS%20Dialog.help.md)
......
# Save Plots
---------------------------
---------------------------
## Step 1: click 'Save Plot'
In Main Window, Raw Data Plot and TPS Plot there are buttons labeled 'Save Plot'.
User need to click those button to save plots in each window.
* Saving State-of-Health plots
<br />
<img alt="Save SOH" src="images/save_plots/save_button_soh.png" height="30" />
<br />
* Saving Raw data plots
<br />
<img alt="Save Waveform" src="images/save_plots/save_button_wf.png" height="60" />
<br />
* Saving Time-power-square plots
<br />
<img alt="Save TPS" src="images/save_plots/save_button_tps.png" height="80" />
<br />
<br />
<br />
If the current color mode is black, user will be asked to continue or cancel
to change mode before saving the image.
<br />
<br />
<img alt="Want to change color mode?" src="images/save_plots/question_on_changing_black_mode.png" height="150" />
<br />
* If user click 'Cancel'. The process of saving plots will be canceled for user
to change mode before restarting saving plots again.
* If user click 'Continue'. The process of saving plots will be continue and the
image will be saved in black mode.
<br />
---------------------------
## Step 2: Edit file path and select image's format
Once clicking on 'Save Plot' button, the 'Save Plot' dialog will pop up.
<br />
<br />
<img alt="Select Image Format dialog" src="images/save_plots/save_file_dialog.png" height="200" />
<br />
+ The default path to save the image file is preset in (1) text box. If user
wants to change the path, click on 'Save Directory button' to open file dialog
for changing path.
+ The default filename to save the image is preset in (2) text box. User can
change the name in this box.
+ In side oval (3) are the radio buttons to select image format to save
file.
+ For 'PNG' format, user can change DPI which is the resolution of the
image. Other formats are vector formats which don't require resolution.
Then user can click 'CANCEL' to cancel saving plot or click 'SAVE PLOT' to save
the current plots to file.
\ No newline at end of file
......@@ -39,7 +39,7 @@ printf("%s\n", syntaxHighlighting.doesItWork ? "Success!" : "Oof.");
^ This is a horizontal line
v This is an image
![An Image?](images/image.jpg)
![An Image?](recreate_table_contents.png)
---
Another horizontal line
......
documentation/images/save_plots/question_on_changing_black_mode.png

39.6 KiB

documentation/images/save_plots/save_button_soh.png

9.79 KiB

documentation/images/save_plots/save_button_tps.png

31.1 KiB

documentation/images/save_plots/save_button_wf.png

13.8 KiB

documentation/images/save_plots/save_file_dialog.png

78.8 KiB

documentation/img.png

3.19 KiB

documentation/recreate_table_contents.png

25.7 KiB

......@@ -50,8 +50,11 @@ TABLE_CONTENTS = "01 _ Table of Contents.help.md"
SEARCH_RESULTS = "Search Results.md"
# the list of all color modes
ALL_COLOR_MODES = {'B', 'W'}
ALL_COLOR_MODES = {'B': 'black', 'W': 'white'}
# List of image formats. Have to put PNG at the beginning to go with
# dpi in dialog
IMG_FORMAT = ['PNG', 'PDF', 'EPS', 'SVG']
# ================================================================= #
# PLOTTING CONSTANT
# ================================================================= #
......
......@@ -139,7 +139,7 @@ def read_mseed_channels(tracking_box: QTextBrowser, list_of_dir: List[str],
spr_gr_1_chan_ids.update(ret[3])
if not on_unittest:
QApplication.restoreOverrideCursor()
return sorted(list(soh_chan_ids)), sorted(list(mass_pos_chan_ids)),\
return sorted(list(soh_chan_ids)), sorted(list(mass_pos_chan_ids)), \
sorted(list(wf_chan_ids)), sorted(list(spr_gr_1_chan_ids))
......
......@@ -47,7 +47,7 @@ class ParamDialog(UiDBInfoDialog):
color_mode_label = QtWidgets.QLabel('Color mode:')
color_selector = QComboBox()
color_selector.insertItem(0, initial_color_mode)
other_color_modes = ALL_COLOR_MODES - {initial_color_mode}
other_color_modes = set(ALL_COLOR_MODES.keys()) - {initial_color_mode}
color_selector.insertItems(1, other_color_modes)
color_selector.setFixedWidth(100)
color_selector.currentTextChanged.connect(self.on_color_mode_changed)
......