Python Forum
What does that angle brackets mean?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does that angle brackets mean?
#3
Hi,

thanks for your answer.

But I have another question. I used mro() to see the whole inheritance of AxesSubplot. And I wondered about "_subplots", "_base" and "_axes":

%matplotlib inline
import matplotlib.pyplot as plt
hist_diagram = housing.hist(bins=50, figsize=(20, 15))
print(type(hist_diagram[0][0]).mro())
Output:
[<class 'matplotlib.axes._subplots.AxesSubplot'>, <class 'matplotlib.axes._subplots.SubplotBase'>, <class 'matplotlib.axes._axes.Axes'>, <class 'matplotlib.axes._base._AxesBase'>, <class 'matplotlib.artist.Artist'>, <class 'object'>]
In the docs of matplotlib I can see there is a class named "matplotlib.axes.SubplotBase", but not a class names "matplotlib.axes._subplots.SubplotBase". What does this _subplots stand for?
Reply


Messages In This Thread
What does that angle brackets mean? - by NewPi - Nov-23-2022, 12:15 AM
RE: What does that angle brackets mean? - by NewPi - Nov-23-2022, 11:39 PM
RE: What does that angle brackets mean? - by NewPi - Nov-24-2022, 09:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  semantics of comma inside array brackets usercat123 2 1,432 Apr-23-2022, 09:08 AM
Last Post: usercat123
  angular servo motor can't keep up with angle inputs taher50 1 2,330 Mar-10-2018, 07:18 PM
Last Post: taher50

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020