Skip to content

Commit 8b0c147

Browse files
committed
Merge branch 'mpl3.6_doctest' into mpl3.6_docbuilding
2 parents 6d31aad + 5501e0d commit 8b0c147

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/sage/plot/arc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ def _matplotlib_arc(self):
273273
p = patches.Arc((self.x, self.y),
274274
2. * self.r1,
275275
2. * self.r2,
276-
fmod(self.angle, 2 * pi) * (180. / pi),
277-
self.s1 * (180. / pi),
278-
self.s2 * (180. / pi))
276+
angle=fmod(self.angle, 2 * pi) * (180. / pi),
277+
theta1=self.s1 * (180. / pi),
278+
theta2=self.s2 * (180. / pi))
279279
return p
280280

281281
def bezier_path(self):

src/sage/plot/ellipse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ def _render_on_subplot(self, subplot):
192192
options = self.options()
193193
p = patches.Ellipse(
194194
(self.x,self.y),
195-
self.r1*2.,self.r2*2.,self.angle/pi*180.)
195+
self.r1*2.,self.r2*2.,
196+
angle=self.angle/pi*180.)
196197
p.set_linewidth(float(options['thickness']))
197198
p.set_fill(options['fill'])
198199
a = float(options['alpha'])

src/sage/plot/graphics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ def show(self, **kwds):
20072007
We can also do custom formatting if you need it. See above for full
20082008
details::
20092009
2010-
sage: plot(2*x+1,(x,0,5),ticks=[[0,1,e,pi,sqrt(20)],2],tick_formatter="latex")
2010+
sage: plot(2*x+1,(x,0,5),ticks=[[0,1,e,pi,sqrt(20)],2],tick_formatter="latex") # not tested (broken with matplotlib 3.6)
20112011
Graphics object consisting of 1 graphics primitive
20122012
20132013
This is particularly useful when setting custom ticks in multiples
@@ -2341,7 +2341,7 @@ def _matplotlib_tick_formatter(self, subplot, base=(10, 10),
23412341
sage: subplot = Figure().add_subplot(111)
23422342
sage: p._objects[0]._render_on_subplot(subplot)
23432343
sage: p._matplotlib_tick_formatter(subplot, **d)
2344-
(<AxesSubplot:>,
2344+
(<AxesSubplot:...>,
23452345
<matplotlib.ticker.MaxNLocator object at ...>,
23462346
<matplotlib.ticker.MaxNLocator object at ...>,
23472347
<matplotlib.ticker.ScalarFormatter object at ...>,

src/sage/plot/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ def b(n): return lambda x: bessel_J(n, x) + 0.5*(n-1)
17411741
17421742
::
17431743
1744-
sage: plot(2*x+1,(x,0,5),ticks=[[0,1,e,pi,sqrt(20)],2],tick_formatter="latex")
1744+
sage: plot(2*x+1,(x,0,5),ticks=[[0,1,e,pi,sqrt(20)],2],tick_formatter="latex") # not tested (broken with matplotlib 3.6)
17451745
Graphics object consisting of 1 graphics primitive
17461746
17471747
.. PLOT::

0 commit comments

Comments
 (0)