How do I make a Mercator map larger

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

Hi Martin,

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

plt.savefig(“mercator.png”)

Cheers,

Arnaldo.

···

2016-01-03 20:20 GMT-02:00 Martin McGlensey <mmcg29440@…4703…>:

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Arnaldo D’Amaral Pereira Granja Russo

Universidade do Estado de Santa Catarina - UDESC

Pesquisador - Instituto Ambiental Boto Flipper

institutobotoflipper .org

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

···

On Sun, Jan 3, 2016 at 5:20 PM, Martin McGlensey <mmcg29440@…4703…> wrote:

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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:arnaldorusso@…287…]
Sent: Monday, January 4, 2016 6:43 AM
To: Martin McGlensey <mmcg29440@…4704…3…>
Cc: matplotlib-users@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 <mmcg29440@…4703…>:

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
Matplotlib-users@…813…ourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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

···

On 2016/01/05 9:48 AM, Martin McGlensey wrote:

Regards,

Marty

*From:*Arnaldo Russo [mailto:arnaldorusso@…287…]
*Sent:* Monday, January 4, 2016 6:43 AM
*To:* Martin McGlensey <mmcg29440@...4703...>
*Cc:* matplotlib-users@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 <mmcg29440@...4703...
<mailto:mmcg29440@…4703…>>:

    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
    Matplotlib-users@lists.sourceforge.net
    <mailto:Matplotlib-users@lists.sourceforge.net>
    matplotlib-users List Signup and Options

------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options