You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dufte style looks nice for use with cantools because of the thin lines. Cantools uses a command line script for plotting where one can specify a plotting style with e.g. --style ggplot. I'd like to use --style matplotx.dufte instead (I also tried --style matplotx.styles.dufte). Unfortunately this doesn't work because matplotx doesn't distribute .mplstyle sheets as suggested by the matplotlib API.
However, as it is now, I don't get the matplotx styles.
Then I could run commands like cat can*.log | python -m cantools plot signal_database.dbc * --style matplotx.dufte and get plots with nice thin linewidths.
This is just one use case. I would think there are plenty of other use cases. A trivial one would be that if matplotx distributes .mplstyle sheets, the following
import matplotx
import matplotlib.pyplot as plt
plt.styles.use(matplotx.styles.dufte)
can be shortened to
import matplotlib.pyplot as plt
plt.styles.use("matplotx.dufte")
For all the examples above, I assume that .mplstyle sheets are in the package root directory but according to the style sheet docs, putting the style sheets at e.g. matplotx.styles.aura would work too.
The text was updated successfully, but these errors were encountered:
The dufte style looks nice for use with cantools because of the thin lines. Cantools uses a command line script for plotting where one can specify a plotting style with e.g.
--style ggplot
. I'd like to use--style matplotx.dufte
instead (I also tried--style matplotx.styles.dufte
). Unfortunately this doesn't work because matplotx doesn't distribute.mplstyle
sheets as suggested by the matplotlib API.I'd like the following to work:
However, as it is now, I don't get the matplotx styles.
Then I could run commands like
cat can*.log | python -m cantools plot signal_database.dbc * --style matplotx.dufte
and get plots with nice thin linewidths.This is just one use case. I would think there are plenty of other use cases. A trivial one would be that if matplotx distributes
.mplstyle
sheets, the followingcan be shortened to
For all the examples above, I assume that
.mplstyle
sheets are in the package root directory but according to the style sheet docs, putting the style sheets at e.g.matplotx.styles.aura
would work too.The text was updated successfully, but these errors were encountered: