Return mtransforms.nonsingular(v0, v1, expander=.05)įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/transforms.py", line 2880, in nonsingular toscale_view(**": scaleįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 2932, in autoscale_viewįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 2895, in handle_single_axisįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/ticker.py", line 1654, in nonsingular Return getattr(getattr(self.axes, lim_name), attr_name)įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 781, in viewLimįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 776, in _unstale_viewLim Vmin, vmax = _view_interval()įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axis.py", line 1987, in getter Labels = axis.get_majorticklabels() axis.get_minorticklabels()įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axis.py", line 1201, in get_majorticklabelsįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axis.py", line 1371, in get_major_ticksįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/axis.py", line 1277, in get_majorticklocsįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/matplotlib/ticker.py", line 2113, in _call_ Self._apply_axis_properties(ax.xaxis, rot=self.rot, fontsize=self.fontsize)įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/pandas/plotting/_matplotlib/core.py", line 614, in _apply_axis_properties Self._post_plot_logic_common(ax, self.data)įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/pandas/plotting/_matplotlib/core.py", line 526, in _post_plot_logic_common Return plot_ot(data, kind=kind, **kwargs)įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/pandas/plotting/_matplotlib/_init_.py", line 71, in plotįile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/pandas/plotting/_matplotlib/core.py", line 335, in generate Pydev_imports.execfile(file, globals, locals) # execute the scriptįile "/Users/danieltclark/Library/Application Support/JetBrains/Toolbox/apps/P圜harm-P/ch-0/213.7172.26/P圜harm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfileĮxec(compile(contents "\n", file, 'exec'), glob, loc)įile "/Users/danieltclark/Documents/GitHub/OBVTrader2/main.py", line 22, in įile "/Library/Frameworks/amework/Versions/3.10/lib/python3.10/site-packages/pandas/plotting/_core.py", line 972, in _call_ This worked: data = įile "/Users/danieltclark/Library/Application Support/JetBrains/Toolbox/apps/P圜harm-P/ch-0/213.7172.26/P圜harm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 1483, in _exec As a test, this simple code plotted successfully. When you tested the code, did you use a Mac M1 system? If not, I'm wondering if the issue is specifically related to subplots on M1 Macs. Rerunning the test code above generated the error below when it hit: # df.set_index("name").plot(ax=ax1)I changed to code to split the set_index and plot to two different statements: df.set_index("name")ĭf.plot(ax=ax1)It errored on the df.plot(ax=ax1) statement. After that, I cleaned out $PATH and reset it to the default "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin". And then deleted and reinstalled Python, P圜harm, and VS Code. As I mentioned above, I deleted Anaconda. Matplotlib supports all kind of subplots including 2x1 vertical, 2x1 horizontal or a 2x2 grid.I don't understand what the conda code does. The Matplotlib subplot() function can be called to plot two or more plots in one figure.
0 Comments
Leave a Reply. |