MCPcopy
hub / github.com/matplotlib/matplotlib / plot

Method plot

galleries/examples/misc/packed_bubbles.py:137–154  ·  view source on GitHub ↗

Draw the bubble plot. Parameters ---------- ax : matplotlib.axes.Axes labels : list Labels of the bubbles. colors : list Colors of the bubbles.

(self, ax, labels, colors)

Source from the content-addressed store, hash-verified

135 self.step_dist = self.step_dist / 2
136
137 def plot(self, ax, labels, colors):
138 """
139 Draw the bubble plot.
140
141 Parameters
142 ----------
143 ax : matplotlib.axes.Axes
144 labels : list
145 Labels of the bubbles.
146 colors : list
147 Colors of the bubbles.
148 """
149 for i in range(len(self.bubbles)):
150 circ = plt.Circle(
151 self.bubbles[i, :2], self.bubbles[i, 2], color=colors[i])
152 ax.add_patch(circ)
153 ax.text(*self.bubbles[i, :2], labels[i],
154 horizontalalignment='center', verticalalignment='center')
155
156
157bubble_chart = BubbleChart(area=browser_market_share['market_share'],

Callers 15

plot3d_simple.pyFile · 0.45
tripcolor.pyFile · 0.45
tricontour.pyFile · 0.45
tricontourf.pyFile · 0.45
fill_between.pyFile · 0.45
plot.pyFile · 0.45
customizing.pyFile · 0.45
plotting_functionFunction · 0.45
quick_start.pyFile · 0.45
my_plotterFunction · 0.45
demoFunction · 0.45

Calls 2

add_patchMethod · 0.80
textMethod · 0.45

Tested by 1

test_rotation_modeFunction · 0.36