SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(1)
2
3
(5)
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(2)
22
23
24
25
26
27
28
29
(1)
30
(1)
31


Showing 10 results of 10

From: Simon <sim...@gm...> - 2016年03月30日 02:09:09
Hello all,
I am trying to superimpose some annotations on a plot by transforming them
to the data coordinate space, and I am finding that the transformed
coordinates are offset from the acutal data positions I expect them to be
in.
Here is my example code:
 import matplotlib.pyplot as plt
 import matplotlib
 # A range of values
 x = list(range(0,20))
 # y = x^2
 y = [ xv*xv for xv in x ]
 fig = plt.figure()
 ax = fig.add_subplot(1,1,1)
 ax.set_xlim(0,100)
 ax.set_ylim(0,100)
 # Plot a line showing the curve
 ax.plot(x,y)
 for i in range(0,len(x)-1):
 pt = (x[i],y[i])
 # Manual transformation fo the point
 pt_tx = ax.transData.transform(pt)
 # A circle drawn automatically in the data coordinates (blue-ish)
 ax.add_artist(plt.Circle(pt, 1, color="#00ffff"))
 # A circle drawn at my manually transformed coordinates (green)
 # I expect these should end up in the same position as the blue
 ax.add_artist(plt.Circle(pt_tx, 4,
transform=matplotlib.transforms.IdentityTransform(),color="#00ff00"))
 fig.savefig("test.pdf")
What I observe when I execute this code is that the manually transformed
points are not in the same location as the ones plotted directly. They are
close, but they are offset (perhaps by the space allocated to the axes?).
Here is how it looks to me:
https://imgur.com/PiqX2o8
Thanks for any help and advice!
Simon
From: Tony Yu <ts...@gm...> - 2016年03月29日 04:25:25
Well... this is a *really* late reply, but I finally got around to adding
easier navigation for the style gallery
<https://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html>.
I
also added an update for styles added in Matplotlib 1.5 and wrote a quick
post <https://tonysyu.github.io/matplotlib-style-gallery.html#.VvoAzxIrKV4>.
Cheers!
-Tony
On Thu, Jan 8, 2015 at 8:10 PM, Tony Yu <ts...@gm...> wrote:
> Thanks Max!
>
> I was planning to add a more interactive interface, really similar to what
> you're suggesting. I haven't gotten around to it, but hopefully, I'll have
> some time to play around with that.
>
> On Thu, Jan 8, 2015 at 4:56 PM, Maximilian Albert <
> max...@gm...> wrote:
>
>> Hi Tony,
>>
>> This is awesome. Great work!
>>
>> I was wondering, is there an easy way to cycle through all available
>> styles for a given plot? For instance, clicking on the top left plot
>> displays a maximized image of the "bmh" style. It would be great if one
>> could press arrow-down (say) to cycle through the other styles
>> "dark_background", "fivethirtyeight", etc. for a quick comparison.
>>
>> Cheers,
>> Max
>>
>>
>> 2015年01月06日 4:42 GMT+00:00 Tony Yu <ts...@gm...>:
>>
>>> I've been playing around with learning Javascript lately. As part of the
>>> process, I created a Flask app to build a gallery for matplotlib style
>>> sheets:
>>>
>>> https://github.com/tonysyu/matplotlib-style-gallery
>>>
>>> If you run that locally, you can actually input styles, either with a
>>> URL to a *.mplstyle file or with matplotlibrc commands. Here's a static
>>> version without the custom inputs:
>>>
>>>
>>> http://tonysyu.github.io/raw_content/matplotlib-style-gallery/gallery.html
>>>
>>> Ideally, I'd get this into a form that could be submitted as a PR for
>>> the matplotlib website, but I'll need a bit more spare time to learn some
>>> more web development (sessions, client storage, etc).
>>>
>>> Cheers!
>>> -Tony
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>> sponsored by Intel and developed in partnership with Slashdot Media, is
>>> your
>>> hub for all things parallel software development, from weekly thought
>>> leadership blogs to news, videos, case studies, tutorials and more. Take
>>> a
>>> look and join the conversation now. http://goparallel.sourceforge.net
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>>
>>
>
From: Nelle V. <nel...@gm...> - 2016年03月21日 17:32:37
I'm terribly sorry about this second email.
The deadline for submitting talks and posters for scipy 2016 is this friday
(friday 25th), and not next friday (april fools day).
Thanks,
Nelle
On 21 March 2016 at 15:32, Nelle Varoquaux <nel...@gm...>
wrote:
> Dear all,
>
> This is a quick reminder that the deadline for submitting talks and
> posters proposal is next friday.
>
> Thanks,
> Nelle
>
> On 22 February 2016 at 10:15, Nelle Varoquaux <nel...@gm...>
> wrote:
>
>>
>> Dear all,
>>
>> SciPy 2016, the Fifteenth Annual Conference on Python in Science, takes
>> place in Austin, TX on July, 11th to 17th. The conference features two days
>> of tutorials by followed by three days of presentations, and concludes with
>> two days of developer sprints on projects of interest to attendees. .
>>
>> The topics presented at SciPy are very diverse, with a focus on advanced
>> software engineering and original uses of Python and its scientific
>> libraries, either in theoretical or experimental research, from both
>> academia and the industry. This year we are happy to announce two
>> specialized tracks that run in parallel to the general conference (Data
>> Science , High Performance Computing) and 8 mini-symposia (Earth and Space
>> Science, Biology and Medicine, Engineering, Social Sciences, Special
>> Purpose Databases, Case Studies in Industry, Education, Reproducibility)
>>
>> Submissions for talks and posters are welcome on our website (
>> http://scipy2016.scipy.org). In your abstract, please provide details on
>> what Python tools are being employed, and how. The talk and poster
>> submission deadline is March 25th, 2016, while the tutorial submission
>> deadline is March, 21st, 2016.
>>
>>
>> Important dates:
>>
>> Mar 21: Tutorial Proposals Due
>> Mar 25: Talk and Poster Proposals Due
>> May 11: Plotting Contest Submissions Due
>> Apr 22: Tutorials Announced
>> Apr 22: Financial Aid Submissions Due
>> May 4: Talk and Posters Announced
>> May 11: Financial Aid Recipients Notified
>> May 22: Early Bird Registration Deadline
>> Jul 11-12: SciPy 2016 Tutorials
>> Jul 13-15: SciPy 2016 General Conference
>> Jul 16-17: SciPy 2016 Sprints
>>
>> We look forward to an exciting conference and hope to see you in Austin
>> in July!
>>
>>
>> The Scipy 2016
>> http://scipy2016.scipy.org/
>>
>> Conference Chairs: Aric Hagberg, Prabhu Ramachandran
>> Tutorial Chairs: Justin Vincent, Ben Root
>> Program Chair: Serge Rey, Nelle Varoquaux
>> Proceeding Chairs: Sebastian Benthall
>>
>>
>
From: Nelle V. <nel...@gm...> - 2016年03月21日 14:32:22
Dear all,
This is a quick reminder that the deadline for submitting talks and posters
proposal is next friday.
Thanks,
Nelle
On 22 February 2016 at 10:15, Nelle Varoquaux <nel...@gm...>
wrote:
>
> Dear all,
>
> SciPy 2016, the Fifteenth Annual Conference on Python in Science, takes
> place in Austin, TX on July, 11th to 17th. The conference features two days
> of tutorials by followed by three days of presentations, and concludes with
> two days of developer sprints on projects of interest to attendees. .
>
> The topics presented at SciPy are very diverse, with a focus on advanced
> software engineering and original uses of Python and its scientific
> libraries, either in theoretical or experimental research, from both
> academia and the industry. This year we are happy to announce two
> specialized tracks that run in parallel to the general conference (Data
> Science , High Performance Computing) and 8 mini-symposia (Earth and Space
> Science, Biology and Medicine, Engineering, Social Sciences, Special
> Purpose Databases, Case Studies in Industry, Education, Reproducibility)
>
> Submissions for talks and posters are welcome on our website (
> http://scipy2016.scipy.org). In your abstract, please provide details on
> what Python tools are being employed, and how. The talk and poster
> submission deadline is March 25th, 2016, while the tutorial submission
> deadline is March, 21st, 2016.
>
>
> Important dates:
>
> Mar 21: Tutorial Proposals Due
> Mar 25: Talk and Poster Proposals Due
> May 11: Plotting Contest Submissions Due
> Apr 22: Tutorials Announced
> Apr 22: Financial Aid Submissions Due
> May 4: Talk and Posters Announced
> May 11: Financial Aid Recipients Notified
> May 22: Early Bird Registration Deadline
> Jul 11-12: SciPy 2016 Tutorials
> Jul 13-15: SciPy 2016 General Conference
> Jul 16-17: SciPy 2016 Sprints
>
> We look forward to an exciting conference and hope to see you in Austin in
> July!
>
>
> The Scipy 2016
> http://scipy2016.scipy.org/
>
> Conference Chairs: Aric Hagberg, Prabhu Ramachandran
> Tutorial Chairs: Justin Vincent, Ben Root
> Program Chair: Serge Rey, Nelle Varoquaux
> Proceeding Chairs: Sebastian Benthall
>
>
Dear colleagues, 
Yes, I've downloaded the latest stable image of Matplotlib source from the 
pypi repository matplotlib-1.5.1.tar.gz, running the commands: sudo python 
setup.py build and sudo python setup.py install. 
When executing larger plots, the Agg crashes with a segmentation fault 
message. My guess is that the c header files are not compiled with the 
correct platform setting (s390x). Is there a way to rebuild 
the c prerequisites used by the embedded Agg framework? 
Thanks in advance for your advice. 
Regards,
Claude Falbriard
Certified IT Specialist L2 - Middleware
Phone: 55-13-99662-5703 | Mobile: 55-13-98117-3316
E-mail: cl...@br...
From: Benjamin Root <ben...@gm...>
To: Claude Falbriard/Brazil/IBM@IBMBR
Cc: Matplotlib Users <mat...@li...>
Date: 03/03/2016 11:44
Subject: Re: [Matplotlib-users] Matplotlib & Basemap / What is the 
Best Graphical Back-end for Raster Data Display (.png) ?
Matplotlib will not work at all without AGG. Even the AGG-less backends 
still use AGG for image handling (imshow() and such).
We can not guarantee that matplotlib would work with agg 2.5, as that is 
the GPL'ed version. We develop against a patched 2.4 branch of AGG (which 
is BSD-licensed), which is distributed with our source, and is built as 
part of our build process. Have you tried building matplotlib directly 
from our source without a system install of AGG?
Cheers
Ben Root
On Thu, Mar 3, 2016 at 6:34 AM, Claude Falbriard <cl...@br...> 
wrote:
Dear colleagues, 
I like to receive an advice about the best back-end choice for Matplotlib 
& Basemap to generate large .png images in a background processing mode. 
Having issues with the pre-compiled "Agg" package which does not work 
under my machine architecture. Also not able to recompile the Agg 2.5 
package as its build throws an error at the build script autogen.sh. 
Error: 
./configure: line 15546: syntax error near unexpected token 
`$SDL_VERSION,'
./configure: line 15546: `AM_PATH_SDL($SDL_VERSION,'
When bypassing this line it runs into another dependency which is blocking 
the make install process.
 
libtool: link: cannot find the library 
`../src/platform/X11/libaggplatformX11.la' or unhandled argument 
`../src/platform/X11/libaggplatformX11.la'
Makefile:1166: recipe for target 'aa_demo' failed
make[1]: *** [aa_demo] Error 1
make[1]: Leaving directory '/data/Downloads/agg/agg-2.5/examples'
Makefile:481: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
I do not plan to use any interactive access, so my guess is that excluding 
X11 libraries should work OK. 
My test showed that the "Cairo" package is working fine, but its quality 
(vector oriented) is not as good compared to the Agg raster display. Case 
the "Agg" 
is not able to install on my machine, is there an alternate graphical 
back-end available under SuSE environments? 
Regards,
Claude Falbriard
Certified IT Specialist L2 - Middleware
Phone:55-13-99662-5703 | Mobile:55-13-98117-3316
E-mail: cl...@br...
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
AGG is used for image handling, particularly for handling transforms,
scaling, interpolation and such. The AxesImage object that you get from
calling imshow() is handled through the AGG library. This is true
regardless of the backend being used because it is based in the AxesImage
class (and others). An SVG of a plot that used imshow() has raster data in
it that comes from AGG (and you can choose to rasterize other things, as
well). Cairo still needs the image buffer.
So, the distinction is the use of the AGG library, and the use of the AGG
backend. The AGG library is required, but the AGG backend is not (but
highly recommended).
I will admit that I didn't have this distinction very clear in my own head
until very recently when reviewing some PRs that reworked the image
handling architecture. I hope that clears it up for you, too.
Cheers!
Ben Root
On Thu, Mar 3, 2016 at 10:05 AM, Jerzy Karczmarczuk <
jer...@un...> wrote:
> Le 03/03/2016 15:43, Benjamin Root a écrit :
> > Matplotlib will not work at all without AGG. Even the AGG-less
> > backends still use AGG for image handling (imshow() and such).
>
> Is it so? I never found such strong statement in the docs.
>
> 1. SVG backend produces vector graphics, no rasterisation in principle,
> so why AGG?
> 2. Cairo uses its own engine. Why AGG?
> 3. Image (PNG) "production" from curves, etc. uses AntiGrain, but if
> imshow() shows an image which is just a pixel array, there is no
> manipulation needing AGG, an element (triple RGB) becomes a pixel, and
> that's it.
>
> Jerzy Karczmarczuk
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
Le 03/03/2016 15:43, Benjamin Root a écrit :
> Matplotlib will not work at all without AGG. Even the AGG-less 
> backends still use AGG for image handling (imshow() and such).
Is it so? I never found such strong statement in the docs.
1. SVG backend produces vector graphics, no rasterisation in principle, 
so why AGG?
2. Cairo uses its own engine. Why AGG?
3. Image (PNG) "production" from curves, etc. uses AntiGrain, but if 
imshow() shows an image which is just a pixel array, there is no 
manipulation needing AGG, an element (triple RGB) becomes a pixel, and 
that's it.
Jerzy Karczmarczuk
Matplotlib will not work at all without AGG. Even the AGG-less backends
still use AGG for image handling (imshow() and such).
We can not guarantee that matplotlib would work with agg 2.5, as that is
the GPL'ed version. We develop against a patched 2.4 branch of AGG (which
is BSD-licensed), which is distributed with our source, and is built as
part of our build process. Have you tried building matplotlib directly from
our source without a system install of AGG?
Cheers
Ben Root
On Thu, Mar 3, 2016 at 6:34 AM, Claude Falbriard <cl...@br...> wrote:
> Dear colleagues,
>
> I like to receive an advice about the best back-end choice for Matplotlib
> & Basemap to generate large .png images in a background processing mode.
> Having issues with the pre-compiled "Agg" package which does not work
> under my machine architecture. Also not able to recompile the Agg 2.5
> package as its build throws an error at the build script autogen.sh.
> Error:
>
> ./configure: line 15546: syntax error near unexpected token `$SDL_VERSION,'
> ./configure: line 15546: `AM_PATH_SDL($SDL_VERSION,'
>
> When bypassing this line it runs into another dependency which is blocking
> the make install process.
>
> libtool: link: cannot find the library
> `../src/platform/X11/libaggplatformX11.la' or unhandled argument
> `../src/platform/X11/libaggplatformX11.la'
> Makefile:1166: recipe for target 'aa_demo' failed
> make[1]: *** [aa_demo] Error 1
> make[1]: Leaving directory '/data/Downloads/agg/agg-2.5/examples'
> Makefile:481: recipe for target 'install-recursive' failed
> make: *** [install-recursive] Error 1
>
> I do not plan to use any interactive access, so my guess is that excluding
> X11 libraries should work OK.
>
> My test showed that the "Cairo" package is working fine, but its quality
> (vector oriented) is not as good compared to the Agg raster display. Case
> the "Agg"
> is not able to install on my machine, is there an alternate graphical
> back-end available under SuSE environments?
>
> Regards,
>
> *Claude Falbriard*
> Certified IT Specialist L2 - Middleware
> ------------------------------
> *Phone:*55-13-99662-5703 | *Mobile:*55-13-98117-3316
> *E-mail:* *cl...@br...* <cl...@br...>
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just 35ドル/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
Dear colleagues, 
I like to receive an advice about the best back-end choice for Matplotlib 
& Basemap to generate large .png images in a background processing mode. 
Having issues with the pre-compiled "Agg" package which does not work 
under my machine architecture. Also not able to recompile the Agg 2.5 
package as its build throws an error at the build script autogen.sh. 
Error: 
./configure: line 15546: syntax error near unexpected token 
`$SDL_VERSION,'
./configure: line 15546: `AM_PATH_SDL($SDL_VERSION,'
When bypassing this line it runs into another dependency which is blocking 
the make install process.
 
libtool: link: cannot find the library 
`../src/platform/X11/libaggplatformX11.la' or unhandled argument 
`../src/platform/X11/libaggplatformX11.la'
Makefile:1166: recipe for target 'aa_demo' failed
make[1]: *** [aa_demo] Error 1
make[1]: Leaving directory '/data/Downloads/agg/agg-2.5/examples'
Makefile:481: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
I do not plan to use any interactive access, so my guess is that excluding 
X11 libraries should work OK. 
My test showed that the "Cairo" package is working fine, but its quality 
(vector oriented) is not as good compared to the Agg raster display. Case 
the "Agg" 
is not able to install on my machine, is there an alternate graphical 
back-end available under SuSE environments? 
Regards,
Claude Falbriard
Certified IT Specialist L2 - Middleware
Phone: 55-13-99662-5703 | Mobile: 55-13-98117-3316
E-mail: cl...@br...
Dear matplotlib users and developers,
I'm using `plt.draw()` to force the rendering of all artists and then,
based on their newly calculated positions, place a text label on the figure
window in figure coordinates.
The goal is to add a text label near the conventional y-axis, at the top,
right-aligned. Example code that demonstrates the problem:
```
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
print(mpl.__version__)
x = np.linspace(0, 50)
y = 4*np.sin(x) + 5
fig = plt.figure(figsize=(18,9.8))
ax = fig.add_axes((0.1, 0.1, 0.8, 0.8),
 frameon=True,
 aspect='equal',
 adjustable='box',
 xlim=(x.min(), x.max()),
 ylim=(0, 10),
 xticks=[x.min(), x.max()],
 yticks=[0, 10],
 xlabel='dimension (unit)')
ax.plot(x, y)
plt.draw() # force redraw
ylabel_pos =
fig.transFigure.inverted().transform_point(ax.transAxes.transform_point((0,1)))
label1 = fig.text(ylabel_pos[0], ylabel_pos[1], "label1", ha="right",
va="bottom")
plt.savefig('/tmp/test_pre_mpl_v_{}.png'.format(mpl.__version__))
ylabel_pos =
fig.transFigure.inverted().transform_point(ax.transAxes.transform_point((0,1)))
label2 = fig.text(ylabel_pos[0], ylabel_pos[1], "label2", ha="right",
va="bottom")
plt.savefig('/tmp/test_post_mpl_v_{}.png'.format(mpl.__version__))
```
The code shows that in mpl 1.4.3 both label1 and label2 end up at the same
(desired) position. However, mpl 1.5.0 and 1.5.1 (just installed to check)
show that label1 is at a height of 0.9 in the figure coordinates. After the
first call to `savefig`, the figure is rendered with the axes getting a new
height and width (due to the call to `aspect='equal', adjustable='box'`)
and so the subsequent call to `savefig` renders label2 in the correct
position.
Using `ax.text(x=0, y=1, s='label', transform=ax.transAxes, ha="right",
va="bottom")` gets the job done alright (both in 1.4.3, as well as 1.5.0),
but the call to `fig.text` using the subsequent transforms should have
worked, I believe.
Kind regards,
Oliver

Showing 10 results of 10

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /