Sneyd: prettify visualization#310
Conversation
dweindl
commented
Jun 29, 2026
- Fix italics
- Fix subscripts
- Remove observable name from legend which is redundant with the y-label
* Fix italics * Fix subscripts * Remove observable name from legend which is redundant with the y-label
| @@ -1,10 +1,10 @@ | |||
| plotId plotTypeData plotName plotTypeSimulation xLabel xScale yLabel yScale datasetId legendEntry yValues xValues xOffset yOffset | |||
| plot1 MeanAndSD LinePlot time [s] lin open probability lin Ca_dose_response__1_open_probability 10 μM IP_3, 0.1 μM $Ca^{2+}$ - open_probability open_probability time 0 0 | |||
There was a problem hiding this comment.
Is there an issue with using $Ca^{2+}$?
There was a problem hiding this comment.
Yes, Ca shouldn't be italicized.
There was a problem hiding this comment.
One could set matplotlib.rcParams["mathtext.default"] = "regular", right? (As a default in the visualization module)
But that wouldn't be good when displaying actual equations - So I think that's a good way to solve the issue.
There was a problem hiding this comment.
Good point, but with using Ca$^{2+}$?
There was a problem hiding this comment.
Good point, but with using
Ca$^{2+}$?
I think no issue... last time I tried it rendered correctly - not sure whether I had to set some matplotlib.rcParams additionally or not, but I believe no. Just less legible IMHO.
There was a problem hiding this comment.
Good point, but with using
Ca$^{2+}$?
Sure, that works as well.
There was a problem hiding this comment.
Related: \mathrm also works it seems, i.e. $\\mathrm{Ca}^{2+}$
There was a problem hiding this comment.
Related:
\mathrmalso works it seems, i.e.$\\mathrm{Ca}^{2+}$
Yup. When I was asked to look at the visualization, I did not consider this due to legibility.