Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is itelic a typo for italic? #143

Open
chama1176 opened this issue Dec 23, 2024 · 0 comments
Open

Is itelic a typo for italic? #143

chama1176 opened this issue Dec 23, 2024 · 0 comments

Comments

@chama1176
Copy link

I am trying to run the tutorial, but I get the following error.

Traceback (most recent call last):
  File "/home/appuser/mujoco_ws/robotoc_mecha_opt_py/chapter1.py", line 117, in <module>
    plot_mpc.plot(t_log, vcom_log, wcom_log, vcom_cmd_log, yaw_rate_cmd_log, simulation.name)
  File "/usr/local/lib/python3.10/site-packages/robotoc/utils/plot.py", line 328, in plot
    plt.rc('mathtext',
  File "/home/appuser/.local/lib/python3.10/site-packages/matplotlib/pyplot.py", line 765, in rc
    matplotlib.rc(group, **kwargs)
  File "/home/appuser/.local/lib/python3.10/site-packages/matplotlib/__init__.py", line 1092, in rc
    rcParams[key] = v
  File "/home/appuser/.local/lib/python3.10/site-packages/matplotlib/__init__.py", line 771, in __setitem__
    raise ValueError(f"Key {key}: {ve}") from None
ValueError: Key mathtext.it: 
serif:itelic
     ^
ParseException: Expected end of text, found ':'  (at char 5), (line:1, col:6)

I think itelic is a typo for italic, is that correct?

'it':'serif:itelic',

By changing to italic, the error no longer occurs.
The same applies to L31 and L244.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant