Skip to content

Is itelic a typo for italic? #143

Description

@chama1176

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions