Discussion:
[Matplotlib-users] How do I make a Mercator map larger
Martin McGlensey
2016-01-03 22:20:34 UTC
Permalink
Hello,



I'm a new user to both python and basemap. I've got my map working OK, but
would like to make it larger on the display. I've tried the height and width
parameters in the map definition (m=basemap(.) and
plt.figure(figuresize=(x,y)). Neither appear to have any effect on the size
of the map.



Is there an easy way to convert map coordinates to inches?



Thanks,

Marty
Arnaldo Russo
2016-01-04 11:42:40 UTC
Permalink
Hi Martin,

Have you tried to save your figure and check if it does not enlarge your
figure?

plt.savefig("mercator.png")

Cheers,
Arnaldo.

---
Arnaldo D'Amaral Pereira Granja Russo
Universidade do Estado de Santa Catarina - UDESC
Pesquisador - Instituto Ambiental Boto Flipper
institutobotoflipper .org
Post by Martin McGlensey
Hello,
I’m a new user to both python and basemap. I’ve got my map working OK, but
would like to make it larger on the display. I’ve tried the height and
width parameters in the map definition (m=basemap(
) and
plt.figure(figuresize=(x,y)). Neither appear to have any effect on the size
of the map.
Is there an easy way to convert map coordinates to inches?
Thanks,
Marty
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Martin McGlensey
2016-01-05 19:48:12 UTC
Permalink
Arnaldo,



Thanks for the response. I figured it out. Figsize although the units are inches it does not correspond to inches on the display. I had to go up to 23 X 12 to get a large image on the display. If I want to fill the display what parameters should I use? I’m looking for a large map not a large frame size. Maybe I’m not understanding the functions of the various arguments used.



Regards,

Marty



From: Arnaldo Russo [mailto:***@gmail.com]
Sent: Monday, January 4, 2016 6:43 AM
To: Martin McGlensey <***@frontier.com>
Cc: matplotlib-***@lists.sourceforge.net
Subject: Re: [Matplotlib-users] How do I make a Mercator map larger



Hi Martin,



Have you tried to save your figure and check if it does not enlarge your figure?



plt.savefig("mercator.png")



Cheers,

Arnaldo.



---

Arnaldo D'Amaral Pereira Granja Russo

Universidade do Estado de Santa Catarina - UDESC

Pesquisador - Instituto Ambiental Boto Flipper

institutobotoflipper .org



2016-01-03 20:20 GMT-02:00 Martin McGlensey <***@frontier.com <mailto:***@frontier.com> >:

Hello,



I’m a new user to both python and basemap. I’ve got my map working OK, but would like to make it larger on the display. I’ve tried the height and width parameters in the map definition (m=basemap(
) and plt.figure(figuresize=(x,y)). Neither appear to have any effect on the size of the map.



Is there an easy way to convert map coordinates to inches?



Thanks,

Marty


------------------------------------------------------------------------------
Eric Firing
2016-01-05 19:58:07 UTC
Permalink
Post by Martin McGlensey
Arnaldo,
Thanks for the response. I figured it out. Figsize although the units
are inches it does not correspond to inches on the display. I had to go
up to 23 X 12 to get a large image on the display. If I want to fill the
display what parameters should I use? I’m looking for a large map not a
large frame size. Maybe I’m not understanding the functions of the
various arguments used.
Rather than using a large size in inches, increase the value of the
"dpi" kwarg to "figure()". When it matches your actual screen dpi, the
display on the screen should be correct in the specified dimensions in
inches, *provided* those dimensions plus the margins (toolbar etc.) fit
on your screen. If they don't, then decrease the dpi (scaling the
displayed figure down) until they do.

Eric
Post by Martin McGlensey
Regards,
Marty
*Sent:* Monday, January 4, 2016 6:43 AM
*Subject:* Re: [Matplotlib-users] How do I make a Mercator map larger
Hi Martin,
Have you tried to save your figure and check if it does not enlarge your figure?
plt.savefig("mercator.png")
Cheers,
Arnaldo.
---
Arnaldo D'Amaral Pereira Granja Russo
Universidade do Estado de Santa Catarina - UDESC
Pesquisador - Instituto Ambiental Boto Flipper
institutobotoflipper.org
Hello,
I’m a new user to both python and basemap. I’ve got my map working
OK, but would like to make it larger on the display. I’ve tried the
height and width parameters in the map definition (m=basemap(…) and
plt.figure(figuresize=(x,y)). Neither appear to have any effect on
the size of the map.
Is there an easy way to convert map coordinates to inches?
Thanks,
Marty
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Benjamin Root
2016-01-04 16:43:43 UTC
Permalink
Without seeing the code, it would be hard to tell what is wrong. Setting
the figure size should work. I do this all the time myself.

As for converting map coordinates to inches, are you talking about inches
of the display? or inches of the map (as opposed to km or miles)?

Ben Root
Post by Martin McGlensey
Hello,
I’m a new user to both python and basemap. I’ve got my map working OK, but
would like to make it larger on the display. I’ve tried the height and
width parameters in the map definition (m=basemap(
) and
plt.figure(figuresize=(x,y)). Neither appear to have any effect on the size
of the map.
Is there an easy way to convert map coordinates to inches?
Thanks,
Marty
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...