vMeijin / pySmithPlot

Matplotlib extension for creating Smith charts with Python
127 stars 73 forks source link

AttributeError: 'YTick' object has no attribute 'label' #41

Open littleEinstein opened 8 months ago

littleEinstein commented 8 months ago

while running smith_short_test.py , saw the following error :

Traceback (most recent call last): File "/Users/mayank/Downloads/pySmithPlot-master/testbenches/smith_short_test.py", line 23, in ax = pp.subplot(1, 1, 1, projection='smith') File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/pyplot.py", line 1437, in subplot ax = fig.add_subplot(*args, kwargs) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/figure.py", line 782, in add_subplot ax = projection_class(self, *args, *pkw) File "/Users/mayank/Downloads/pySmithPlot-master/smithplot/smithaxes.py", line 374, in init Axes.init(self, args, SmithAxes.update_scParams(instance=self, filter_dict=True, reset=False, *kwargs)) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 678, in init self.clear() File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 1386, in clear self.cla() File "/Users/mayank/Downloads/pySmithPlot-master/smithplot/smithaxes.py", line 420, in cla Axes.cla(self) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 1395, in cla self.clear() File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 1356, in clear self.yaxis.set_clip_path(self.patch) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 297, in wrapper return func(args, kwargs) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axis.py", line 1111, in set_clip_path for child in self.majorTicks + self.minorTicks: File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axis.py", line 591, in get tick = instance._get_tick(major=False) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axis.py", line 1562, in _get_tick return self._tick_class(self.axes, 0, major=major, tick_kw) File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axis.py", line 480, in init trans, va, ha = self._get_text1_transform() File "/Users/mayank/Downloads/Sinope_FR1/Dashboard/pySmithPlot-master/.venv/lib/python3.9/site-packages/matplotlib/axis.py", line 492, in _get_text1_transform return self.axes.get_yaxis_text1_transform(self._pad) File "/Users/mayank/Downloads/pySmithPlot-master/smithplot/smithaxes.py", line 510, in get_yaxis_text1_transform font_size = self.yaxis.majorTicks[0].label.get_size() AttributeError: 'YTick' object has no attribute 'label'

almonleo commented 3 months ago

I am running into the same problem. I am using Anaconda/Spyder Any solution?