SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Sudheer J. <sud...@ya...> - 2016年04月25日 16:08:31
Hi,
 I am looking for a layout as seen in the empty layout attached which is produced using 
figsize(20,8),subplot(1,2,1);subplot(222);subplot(224)
However when I use it for getting attached second figure the layout gets modified as seen in attached figure 2.
fig = p.figure(figsize=(20,8))
ax=p.subplot(121)
ax1=p.subplot(222)
ax2=p.subplot(224)
Can any one suggest a way to get figure exactly as the empty layout?
With best regards,
Sudheer
*************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com ***************************************************************
From: Paul H. <pmh...@gm...> - 2016年04月25日 16:33:29
Your basemap plot is likely setting the aspect of the axes to "equal", so
it resizes the plot accordingly. Otherwise you'd have a pretty nasty amount
of vertical distortion.
When you save the figure, using bbox_inches='tight' will trim the excess
white space from the margins:
fig.savefig('map_and_bars.png', dpi=600, bbox_inches='tight')
Also, you should try the new viridis color map :)
http://matplotlib.org/users/colormaps.html?highlight=colormaps#miscellaneous
On Mon, Apr 25, 2016 at 9:05 AM, Sudheer Joseph <sud...@ya...>
wrote:
> Hi,
> I am looking for a layout as seen in the empty layout attached
> which is produced using
> figsize(20,8),subplot(1,2,1);subplot(222);subplot(224)
>
> However when I use it for getting attached second figure the layout gets
> modified as seen in attached figure 2.
> fig = p.figure(figsize=(20,8))
> ax=p.subplot(121)
> ax1=p.subplot(222)
> ax2=p.subplot(224)
>
> Can any one suggest a way to get figure exactly as the empty layout?
>
> With best regards,
> Sudheer
>
> *************************************************************** Sudheer
> Joseph Indian National Centre for Ocean Information Services
> Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla
> P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
> Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
> Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
> E-mail:sjo...@gm...;sud...@ya... Web-
> http://oppamthadathil.tripod.com
> ***************************************************************
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Jody K. <jk...@uv...> - 2016年04月25日 16:40:31
Yes, the left hand axis is shrinking in the vertical because it is applying the aspect ratio appropriate for 15 N and the N/S extent of your data. Either make the N/S extent of the map larger; make the left hand column wider; or make the figure shorter.
Cheers, Jody
> On 25 Apr 2016, at 9:05 AM, Sudheer Joseph <sud...@ya...> wrote:
> 
> Hi,
> I am looking for a layout as seen in the empty layout attached which is produced using 
> figsize(20,8),subplot(1,2,1);subplot(222);subplot(224)
> 
> However when I use it for getting attached second figure the layout gets modified as seen in attached figure 2.
> fig = p.figure(figsize=(20,8))
> ax=p.subplot(121)
> ax1=p.subplot(222)
> ax2=p.subplot(224)
> 
> Can any one suggest a way to get figure exactly as the empty layout?
> 
> With best regards,
> Sudheer
> 
> *************************************************************** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo...@gm...;sud...@ya... Web- http://oppamthadathil.tripod.com ***************************************************************<req_layout.png><getting_layout.png>------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Jody Klymak 
http://web.uvic.ca/~jklymak/
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 によって変換されたページ (->オリジナル) /