We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1bdde commit 2545497Copy full SHA for 2545497
petab/visualize/plotter.py
@@ -95,7 +95,8 @@ def generate_lineplot(
95
96
label_base = dataplot.legendEntry
97
98
- if measurements_to_plot is not None:
+ if measurements_to_plot is not None \
99
+ and not measurements_to_plot.data_to_plot.empty:
100
# plotting all measurement data
101
102
if plotTypeData == REPLICATE:
@@ -376,7 +377,11 @@ def generate_figure(
376
377
else:
378
ax = axes[subplot.plotId]
379
- self.generate_subplot(ax, subplot)
380
+ try:
381
+ self.generate_subplot(ax, subplot)
382
+ except Exception as e:
383
+ raise RuntimeError(
384
+ f"Error plotting {getattr(subplot, PLOT_ID)}.") from e
385
386
if subplot_dir is not None:
387
# TODO: why this doesn't work?
0 commit comments