Skip to content

Commit 5dd8dc2

Browse files
committed
- Fixed bug where custom Y axis tick marks and locations were sometimes not plotted properly.
- Fixed bug where `rcParamsDevice` devices were not skipped when user elects to redraw all charts from the plugin menu. - Adds module filename to chart error tracebacks to make it easier to find the error. - Adds new module `validate` and moves validation code to that module. - Code refinements. - Minor UI refinements.
1 parent d36ad43 commit 5dd8dc2

21 files changed

+242
-412
lines changed

_changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#### v2022.1.6
2+
- Fixed bug where custom Y axis tick marks and locations were sometimes not plotted properly.
3+
- Fixed bug where `rcParamsDevice` devices were not skipped when user elects to redraw all charts from the plugin menu.
4+
- Adds module filename to chart error tracebacks to make it easier to find the error.
5+
- Adds new module `validate` and moves validation code to that module.
6+
- Code refinements.
7+
- Minor UI refinements.
8+
19
#### v2022.1.5
210
- Charts
311
- Annotation value precision controls added to Area, Bar Flow Vertical, Bar Stock Horizontal, Bar Stock Vertical,

_to_do_list.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### TODO
2-
- x
2+
-
33

44
#### NEW
55
- Combination device (line/bar to replicate weather devices).
@@ -11,6 +11,7 @@
1111
[See example](https://matplotlib.org/3.1.1/gallery/ticks_and_spines/multiple_yaxis_with_spines.html)
1212
- Create new STEP chart type as step is no longer a supported line style.
1313
[See example](https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.step.html?highlight=steps%20post)
14+
1415
#### Refinements
1516
- Try to address annotation collisions.
1617
- Allow scripting control or a tool to repopulate color controls so that you can change all bars/lines/scatter etc. in

matplotlib.indigoPlugin/Contents/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>PluginVersion</key>
6-
<string>2022.1.5</string>
6+
<string>2022.1.6</string>
77
<key>ServerApiVersion</key>
88
<string>3.0</string>
99
<key>IwsApiVersion</key>

matplotlib.indigoPlugin/Contents/Server Plugin/Devices.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,7 +2896,7 @@
28962896

28972897
<Field id="filterAnomalies" type="textfield" defaultValue="0"
28982898
visibleBindingId="settingsGroup" visibleBindingValue="ch"
2899-
tooltip="If checked, the plugin will hide anomalous data when plotting charts.">
2899+
tooltip="The number of standard deviations to contain anomalous data. Set to zero (the default) to display all data.">
29002900
<Label>Hide Anomalies:</Label>
29012901
</Field>
29022902

@@ -4279,7 +4279,7 @@
42794279
<!-- Filter Anomalies -->
42804280
<Field id="filterAnomalies" type="textfield" defaultValue="0"
42814281
visibleBindingId="settingsGroup" visibleBindingValue="ch"
4282-
tooltip="If checked, the plugin will hide anomalous data when plotting charts.">
4282+
tooltip="The number of standard deviations to contain anomalous data. Set to zero (the default) to display all data.">
42834283
<Label>Hide Anomalies:</Label>
42844284
<CallbackMethod>dummyCallback</CallbackMethod>
42854285
<Description/>

matplotlib.indigoPlugin/Contents/Server Plugin/chart_area.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,6 @@ def __init__():
336336
tb = traceback.format_exc()
337337
tb_type = sys.exc_info()[1]
338338
LOG['Debug'].append(f"[{CHART_NAME}] {tb}")
339-
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type}")
339+
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type} in {__file__.split('/')[-1]}")
340340

341341
json.dump(LOG, sys.stdout, indent=4)

matplotlib.indigoPlugin/Contents/Server Plugin/chart_bar_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,6 @@ def __init__():
257257
tb = traceback.format_exc()
258258
tb_type = sys.exc_info()[1]
259259
LOG['Debug'].append(f"[{CHART_NAME}] {tb}")
260-
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type}")
260+
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type} in {__file__.split('/')[-1]}")
261261

262262
json.dump(LOG, sys.stdout, indent=4)

matplotlib.indigoPlugin/Contents/Server Plugin/chart_bar_radial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ def __init__():
103103
tb = traceback.format_exc()
104104
tb_type = sys.exc_info()[1]
105105
LOG['Debug'].append(f"[{CHART_NAME}] {tb}")
106-
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type}")
106+
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type} in {__file__.split('/')[-1]}")
107107

108108
json.dump(LOG, sys.stdout, indent=4)

matplotlib.indigoPlugin/Contents/Server Plugin/chart_bar_stock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ def __init__():
225225
tb = traceback.format_exc()
226226
tb_type = sys.exc_info()[1]
227227
LOG['Debug'].append(f"[{CHART_NAME}] {tb}")
228-
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type}")
228+
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type} in {__file__.split('/')[-1]}")
229229

230230
json.dump(LOG, sys.stdout, indent=4)

matplotlib.indigoPlugin/Contents/Server Plugin/chart_bar_stock_horizontal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,6 @@ def __init__():
221221
tb = traceback.format_exc()
222222
tb_type = sys.exc_info()[1]
223223
LOG['Debug'].append(f"[{CHART_NAME}] {tb}")
224-
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type}")
224+
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type} in {__file__.split('/')[-1]}")
225225

226226
json.dump(LOG, sys.stdout, indent=4)

matplotlib.indigoPlugin/Contents/Server Plugin/chart_batteryhealth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,6 @@
209209
tb = traceback.format_exc()
210210
tb_type = sys.exc_info()[1]
211211
LOG['Debug'].append(f"[{CHART_NAME}] {tb}")
212-
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type}")
212+
LOG['Critical'].append(f"[{CHART_NAME}] Error type: {tb_type} in {__file__.split('/')[-1]}")
213213

214214
json.dump(LOG, sys.stdout, indent=4)

0 commit comments

Comments
 (0)