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
|
From: Sudheer J. <sud...@ya...> - 2016-08-10 04:05:52
|
Hi, I have send below query to matplotlib user group recently but did not get posted so far. Can you please tell me is there is any thin wrong with the message? With best regards, Sudheer > > Dear Expert, > Recently after up-gradation of matplotlib and ubuntu 16.04 I am > getting transparent figure axis when using the "linux color scheme" > option in ipython qtconsole. May I know if there is a way to fix this issue?. I > wanted to keep black screen as it reduces eye strain. > > ipython qtconsole --matplotlib inline > > If I save the image i am able to get axis properly but to see on screen as the > axis is not plotted with white background the black axis line and labels are not > visible. Earlier I used to get figures as attached in second figure. > Earlier Satus which I am looking for below link > https://drive.google.com/open?id=0B3heUQNme7G5ZmVlUHpRakZxUlk > Present status without boarder below link > > > https://drive.google.com/open?id=0B3heUQNme7G5VkhZWHhiUnpfWDg > > Kindly suggest a solution > with best regards, > Sudheer > |
From: Sudheer J. <sud...@ya...> - 2016-08-06 06:02:04
|
Dear Expert, Recently after up-gradation of matplotlib and ubuntu 16.04 I am getting transparent figure axis when using the "linux color scheme" option in ipython qtconsole. May I know if there is a way to fix this issue?. I wanted to keep black screen as it reduces eye strain. ipython qtconsole --matplotlib inline If I save the image i am able to get axis properly but to see on screen as the axis is not plotted with white background the black axis line and labels are not visible. Earlier I used to get figures as attached in second figure. Earlier Satus which I am looking for below link https://drive.google.com/open?id=0B3heUQNme7G5ZmVlUHpRakZxUlk Present status without boarder below link https://drive.google.com/open?id=0B3heUQNme7G5VkhZWHhiUnpfWDg Kindly suggest a solution with best regards, Sudheer |
From: Thomas C. <tca...@gm...> - 2016-07-31 22:32:25
|
Folks, During the sprints at SciPy Mike Droettboom and I started to adapt the Jupyter governance documents for matplotlib. We are doing this in the open, and a pull request of the changes is at: https://github.com/matplotlib/governance/pull/1 To be clear, this is a work in progress and is not final or in force. We propose the mechanism for ratifying the these documents is to, after input from the community, have the current "matplotlib Executive Committee" (the signers of the FSA with NUMFocus) vote. Tom ps A very similar email was sent to the matplotlib-devel list on July 17 |
From: Chao Y. <cha...@gm...> - 2016-07-29 14:59:24
|
Dear all matplotlib users, I am trying to make a geographical map with colors, in which the colors of pixels will depend on 2-dimensions of (x,y), like the one attached from one publication. I searched online and this is where I arrive: https://gist.github.com/ChaoYue/81eb01b558f068f11ee741c56557a6a2 To put it short, I know how to pick up color by x-axis value, and use y-axis value as an indicator of either saturation, or brightness or transparency of the color. Or somewhere to convert this (x,y) information back to linear space and select color from a matplotlib colormap. But is there some way that I can use different colors for each corner of the small square as shown in the example, and somewhere interpolate the colors in between? like the one attached? These are the online sources that help me, even though I am not sure I fully understand the tricks inside them ...: http://stackoverflow.com/questions/15207255/is-there-any-way-to-use-bivariate-colormaps-in-matplotlib https://github.com/matplotlib/matplotlib/issues/4369 Thanks a lot in advance for any suggestions, Cheers, Chao On Mon, Jul 25, 2016 at 4:34 PM, Chao YUE <cha...@gm...> wrote: > Dear all matplotlib users, > > I am trying to make a geographical map with colors, in which the colors of > pixels will depend on 2-dimensions of (x,y), like the one attached from one > publication. I searched online and this is where I arrive: > > https://gist.github.com/ChaoYue/81eb01b558f068f11ee741c56557a6a2 > > To put it short, I know how to pick up color by x-axis value, and use > y-axis value as an indicator of either saturation, or brightness or > transparency of the color. Or somewhere to convert this (x,y) information > back to linear space and select color from a matplotlib colormap. But is > there some way that I can use different colors for each corner of the small > square as shown in the example, and somewhere interpolate the colors in > between? like the one attached? > > These are the online sources that help me, even though I am not sure I > fully understand the tricks inside them ...: > > > http://stackoverflow.com/questions/15207255/is-there-any-way-to-use-bivariate-colormaps-in-matplotlib > > https://github.com/matplotlib/matplotlib/issues/4369 > > Thanks a lot in advance for any suggestions, > > Cheers, > Chao > > -- > please visit: > http://www.globalcarbonatlas.org/ > > *********************************************************************************** > Chao YUE > postdoc at LSCE > CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX > Tel: 33 1 69 08 41 87 > > ************************************************************************************ > -- please visit: http://www.globalcarbonatlas.org/ *********************************************************************************** Chao YUE postdoc at LSCE CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX Tel: 33 1 69 08 41 87 ************************************************************************************ |
From: Thomas C. <tca...@gm...> - 2016-07-11 23:36:57
|
scatter does not (currently) support multiple markers in a single call. You will have to do the group-by operation and call scatter is a loop. If you define your cmap and norm outside of scatter, you can pass the same instances into both calls to scatter to have mpl take care of that level of mapping for you. Tom On Mon, Jul 11, 2016 at 3:32 PM Chao YUE <cha...@gm...> wrote: > OK, after posting I realize I can pass a vector to the 's' keyword in > plt.scatter to set the marker size, like s=[20,20,20,20,20,50,20,20,20,20]. > How about using a different marker type? Thanks! > > Regards, > Chao > > On Mon, Jul 11, 2016 at 10:27 PM, Chao YUE <cha...@gm...> wrote: > >> Dear all matplotlib users, >> >> I have a user case that, let's say I have three series data: x,y,z. >> I would like to make a scatter plot using (x,y) as coordinates and z as >> the color of scatter points, using cmap keyword of plt.scatter. However, I >> would like to highlight some specific point by using a different marker (or >> marker size) than other points. >> >> A minimum example is like below: >> x,y,z = np.random.randn(3,10) >> plt.scatter(x,y,c=z,cmap=matplotlib.cm.jet) >> plt.colorbar() >> >> If I want to use a different marker or marker size for (x[5],y[5],z[5]), >> how could I do that? >> The only way I can think of is to plot again for this point using >> plt.scatter([x[5],y[5]) but define the color by manually finding the >> colormap color corresponding to z[5]. However this is quite tedious. Is >> there a better way? >> >> Thanks a lot for any help, >> >> Regards, >> Chao >> >> -- >> please visit: >> http://www.globalcarbonatlas.org/ >> >> *********************************************************************************** >> Chao YUE >> postdoc at LSCE >> CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX >> Tel: 33 1 69 08 41 87 >> >> ************************************************************************************ >> > > > > -- > please visit: > http://www.globalcarbonatlas.org/ > > *********************************************************************************** > Chao YUE > postdoc at LSCE > CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX > Tel: 33 1 69 08 41 87 > > ************************************************************************************ > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Chao Y. <cha...@gm...> - 2016-07-11 20:32:12
|
OK, after posting I realize I can pass a vector to the 's' keyword in plt.scatter to set the marker size, like s=[20,20,20,20,20,50,20,20,20,20]. How about using a different marker type? Thanks! Regards, Chao On Mon, Jul 11, 2016 at 10:27 PM, Chao YUE <cha...@gm...> wrote: > Dear all matplotlib users, > > I have a user case that, let's say I have three series data: x,y,z. > I would like to make a scatter plot using (x,y) as coordinates and z as > the color of scatter points, using cmap keyword of plt.scatter. However, I > would like to highlight some specific point by using a different marker (or > marker size) than other points. > > A minimum example is like below: > x,y,z = np.random.randn(3,10) > plt.scatter(x,y,c=z,cmap=matplotlib.cm.jet) > plt.colorbar() > > If I want to use a different marker or marker size for (x[5],y[5],z[5]), > how could I do that? > The only way I can think of is to plot again for this point using > plt.scatter([x[5],y[5]) but define the color by manually finding the > colormap color corresponding to z[5]. However this is quite tedious. Is > there a better way? > > Thanks a lot for any help, > > Regards, > Chao > > -- > please visit: > http://www.globalcarbonatlas.org/ > > *********************************************************************************** > Chao YUE > postdoc at LSCE > CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX > Tel: 33 1 69 08 41 87 > > ************************************************************************************ > -- please visit: http://www.globalcarbonatlas.org/ *********************************************************************************** Chao YUE postdoc at LSCE CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX Tel: 33 1 69 08 41 87 ************************************************************************************ |
From: Chao Y. <cha...@gm...> - 2016-07-11 20:27:40
|
Dear all matplotlib users, I have a user case that, let's say I have three series data: x,y,z. I would like to make a scatter plot using (x,y) as coordinates and z as the color of scatter points, using cmap keyword of plt.scatter. However, I would like to highlight some specific point by using a different marker (or marker size) than other points. A minimum example is like below: x,y,z = np.random.randn(3,10) plt.scatter(x,y,c=z,cmap=matplotlib.cm.jet) plt.colorbar() If I want to use a different marker or marker size for (x[5],y[5],z[5]), how could I do that? The only way I can think of is to plot again for this point using plt.scatter([x[5],y[5]) but define the color by manually finding the colormap color corresponding to z[5]. However this is quite tedious. Is there a better way? Thanks a lot for any help, Regards, Chao -- please visit: http://www.globalcarbonatlas.org/ *********************************************************************************** Chao YUE postdoc at LSCE CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX Tel: 33 1 69 08 41 87 ************************************************************************************ |
From: Joseph Fox-R. <jfo...@gm...> - 2016-07-11 14:03:11
|
I originally posted to Stack Overflow at http://stackoverflow.com/q/38274681/2988730. I am trying to follow the answer at http://stackoverflow.com/a/38008501/2988730 to an earlier question of mine to create colored and styled legend-like entries. I have the following code: import matplotlib as mpl mpl.use('ps') from matplotlib import pyplot as plt mpl.rc('text', usetex=True) mpl.rc('text.latex', preamble='\\usepackage{color}\n\\usepackage{dashrule}') plt.ion() ax = plt.plot((0, 1), (1, 2))[0].axes ax.set_ylabel(r'Y $\;$ \textcolor[rgb]{1.0, 0.0, 0.0}{\hdashrule[0.5ex]{3cm}{1pt}{1pt 0pt}}') ax.set_xlabel(r'N $\;$ \textcolor[rgb]{0.0, 1.0, 0.0}{\rule[0.5ex]{3cm}{1pt}}') plt.savefig('test.ps') The result is as expected. The labels contain black text with a red line on the Y label and a green line on the X label: http://i.stack.imgur.com/JCiLI.png. However, when I try the exact same set of commands without the `mpl.use('ps')` line (using `'qt4agg'` backend on my system), the figure neither saves corectly nor shows up correctly on screen: import matplotlib as mpl from matplotlib import pyplot as plt mpl.rc('text', usetex=True) mpl.rc('text.latex', preamble='\\usepackage{color}\n\\usepackage{dashrule}') plt.ion() ax = plt.plot((0, 1), (1, 2))[0].axes ax.set_ylabel(r'Y $\;$ \textcolor[rgb]{1.0, 0.0, 0.0}{\hdashrule[0.5ex]{3cm}{1pt}{1pt 0pt}}') ax.set_xlabel(r'N $\;$ \textcolor[rgb]{0.0, 1.0, 0.0}{\rule[0.5ex]{3cm}{1pt}}') plt.savefig('test.png') plt.show() The result of `plt.savefig` (http://i.stack.imgur.com/h2LXn.png) and `plt.show` (http://i.stack.imgur.com/0Ow7c.png) are basically the same in this case. The lines after the text show up black. How do I get the colors to show up in the labels with the default interactive backend? Regards, -Joe |
From: John L. <jla...@it...> - 2016-06-23 00:30:01
|
Hi there, I have been subscribed to matplotlib-users before. I have a new job, and now I'm connecting from a new email address. I've been using Matplotlib since before 1.0 was released. Currently, I'm using MPL 1.4.2 and Python 3.5 on Ubuntu Linux 15.04 (if any of that matters). Please have a look at the following graph: [image: Inline image 1] The values in the data set used to plot these two graphs range from 14942 to 14948. In other words, the median of the data set is very far from zero, but the range of the data is very small. With such a data set, MPL subtracts a large offset value from the data points, choosing a value such that the remaining differences are small, positive numbers. I understand the logic behind this, it simplifies graph labeling on the x-axis of the left graph, and the y-axis of the right graph. However, I do not like the way that MPL is displaying the offset value. It is written in small text, and it does not show up in a consistent place. On a figure with many adjacent axes, it sometimes isn't clear which axes owns the annotation. I would prefer to incorporate the offset in the axes title: for example, the title of the left graph could read "internal thermistor (+14940)". So, what is this offset value called in Matplotlib? How do I retrieve it? How can I override its display? I can obviously do this by wrapping these particular plots in functions which apply the offset before giving the data to MPL. But I would prefer to work with MPL itself, as I don't always know when MPL will judge that a data offset value is needed. Thanks for your help! -- *John J. Ladasky Jr., Ph.D.* *Research Scientist* *International Technological University* *2711 N. First St, San Jose, CA 95134 USA* |
From: Alan <ala...@gm...> - 2016-06-16 19:15:08
|
Thank guys, it was an old pkg-config in my PATH. It's now sorted. Alan On 16 June 2016 at 20:10, Matthew Brett <mat...@gm...> wrote: > Hi, > > On Thu, Jun 16, 2016 at 9:07 AM, Alan <ala...@gm...> wrote: > > Hi there, > > > > I am not the admin so I have installed my own python 3.5.1 and I am using > > pip3 to install all modules I need. I got all but matplotlib :-( > > > > pip3 install -U matplotlib > > Collecting matplotlib > > Using cached matplotlib-1.5.1.tar.gz > > Complete output from command python setup.py egg_info: > > Traceback (most recent call last): > > File "<string>", line 1, in <module> > > File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in > > <module> > > result = package.check() > > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in > > check > > min_version='1.2', version=version) > > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in > > _check_for_pkg_config > > if (not is_min_version(version, min_version)): > > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in > > is_min_version > > return found_version >= expected_version > > File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, > in > > __ge__ > > c = self._cmp(other) > > File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line > 337, in > > _cmp > > if self.version < other.version: > > TypeError: unorderable types: str() < int() > > > > > ============================================================================ > > Edit setup.cfg to change the build options > > > > BUILDING MATPLOTLIB > > matplotlib: yes [1.5.1] > > python: yes [3.5.1 (default, Jun 16 2016, 11:03:02) > > [GCC > > 4.4.7 20120313 (Red Hat 4.4.7-11)]] > > platform: yes [linux] > > > > REQUIRED DEPENDENCIES AND EXTENSIONS > > numpy: yes [version 1.11.0] > > dateutil: yes [using dateutil version 2.5.3] > > pytz: yes [using pytz version 2016.4] > > cycler: yes [using cycler version 0.10.0] > > tornado: yes [using tornado version 4.3] > > pyparsing: yes [using pyparsing version 2.1.5] > > libagg: yes [pkg-config information for 'libagg' > could > > not > > be found. Using local copy.] > > freetype: yes [version unknown] > > > > ---------------------------------------- > > Command "python setup.py egg_info" failed with error code 1 in > > /tmp/pip-build-6eka4_fr/matplotlib/ > > > > What am I missing here please? > > > > Thanks, > > > > Alan > > > > PS. btw, with python 2.7.11 all went fine. > > By the way does this: > > python -m pip install --upgrade pip # upgrade to latest pip > pip install -f https://nipy.bic.berkeley.edu/manylinux -U matplotlib > > work for you to install matplotlib 1.5.1? > > Or this, to install 2.0 pre-release? > > python -m pip install --upgrade pip # upgrade to latest pip > pip install -f https://nipy.bic.berkeley.edu/manylinux -U --pre matplotlib > > Best, > > Matthew > -- Alan Wilter SOUSA da SILVA, DSc Senior Bioinformatician, UniProt European Bioinformatics Institute (EMBL-EBI) European Molecular Biology Laboratory Wellcome Trust Genome Campus Hinxton Cambridge CB10 1SD United Kingdom Tel: +44 (0)1223 494588 |
From: Matthew B. <mat...@gm...> - 2016-06-16 19:11:32
|
Hi, On Thu, Jun 16, 2016 at 9:07 AM, Alan <ala...@gm...> wrote: > Hi there, > > I am not the admin so I have installed my own python 3.5.1 and I am using > pip3 to install all modules I need. I got all but matplotlib :-( > > pip3 install -U matplotlib > Collecting matplotlib > Using cached matplotlib-1.5.1.tar.gz > Complete output from command python setup.py egg_info: > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in > <module> > result = package.check() > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in > check > min_version='1.2', version=version) > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in > _check_for_pkg_config > if (not is_min_version(version, min_version)): > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in > is_min_version > return found_version >= expected_version > File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, in > __ge__ > c = self._cmp(other) > File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 337, in > _cmp > if self.version < other.version: > TypeError: unorderable types: str() < int() > > ============================================================================ > Edit setup.cfg to change the build options > > BUILDING MATPLOTLIB > matplotlib: yes [1.5.1] > python: yes [3.5.1 (default, Jun 16 2016, 11:03:02) > [GCC > 4.4.7 20120313 (Red Hat 4.4.7-11)]] > platform: yes [linux] > > REQUIRED DEPENDENCIES AND EXTENSIONS > numpy: yes [version 1.11.0] > dateutil: yes [using dateutil version 2.5.3] > pytz: yes [using pytz version 2016.4] > cycler: yes [using cycler version 0.10.0] > tornado: yes [using tornado version 4.3] > pyparsing: yes [using pyparsing version 2.1.5] > libagg: yes [pkg-config information for 'libagg' could > not > be found. Using local copy.] > freetype: yes [version unknown] > > ---------------------------------------- > Command "python setup.py egg_info" failed with error code 1 in > /tmp/pip-build-6eka4_fr/matplotlib/ > > What am I missing here please? > > Thanks, > > Alan > > PS. btw, with python 2.7.11 all went fine. By the way does this: python -m pip install --upgrade pip # upgrade to latest pip pip install -f https://nipy.bic.berkeley.edu/manylinux -U matplotlib work for you to install matplotlib 1.5.1? Or this, to install 2.0 pre-release? python -m pip install --upgrade pip # upgrade to latest pip pip install -f https://nipy.bic.berkeley.edu/manylinux -U --pre matplotlib Best, Matthew |
From: Eric F. <ef...@ha...> - 2016-06-16 19:07:24
|
Alan, This mailing list is obsolete; please use mat...@py.... Your traceback looks vaguely familiar as something that has come up before, but I don't have any more recollection than that. Suggestions: 1) Install your python environment the easy way via anaconda or miniconda: https://www.continuum.io/downloads 2) If you are *sure* you don't want to do it that way, make sure you have the most recent version of pip. 3) Likewise, install the most recent matplotlib. See attached message. Eric On 2016/06/16 6:07 AM, Alan wrote: > Hi there, > > I am not the admin so I have installed my own python 3.5.1 and I am > using pip3 to install all modules I need. I got all but matplotlib :-( > > pip3 install -U matplotlib > > Collecting matplotlib > Using cached matplotlib-1.5.1.tar.gz > Complete output from command python setup.py egg_info: > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in > <module> > result = package.check() > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, > in check > min_version='1.2', version=version) > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, > in _check_for_pkg_config > if (not is_min_version(version, min_version)): > File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, > in is_min_version > return found_version >= expected_version > File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, > in __ge__ > c = self._cmp(other) > File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line > 337, in _cmp > if self.version < other.version: > TypeError: unorderable types: str() < int() > > ============================================================================ > Edit setup.cfg to change the build options > > BUILDING MATPLOTLIB > matplotlib: yes [1.5.1] > python: yes [3.5.1 (default, Jun 16 2016, 11:03:02) > [GCC > 4.4.7 20120313 (Red Hat 4.4.7-11)]] > platform: yes [linux] > > REQUIRED DEPENDENCIES AND EXTENSIONS > numpy: yes [version 1.11.0] > dateutil: yes [using dateutil version 2.5.3] > pytz: yes [using pytz version 2016.4] > cycler: yes [using cycler version 0.10.0] > tornado: yes [using tornado version 4.3] > pyparsing: yes [using pyparsing version 2.1.5] > libagg: yes [pkg-config information for 'libagg' > could not > be found. Using local copy.] > freetype: yes [version unknown] > > ---------------------------------------- > Command "python setup.py egg_info" failed with error code 1 in > /tmp/pip-build-6eka4_fr/matplotlib/ > > What am I missing here please? > > Thanks, > > Alan > > PS. btw, with python 2.7.11 all went fine. > |
From: Alan <ala...@gm...> - 2016-06-16 16:08:04
|
Hi there, I am not the admin so I have installed my own python 3.5.1 and I am using pip3 to install all modules I need. I got all but matplotlib :-( pip3 install -U matplotlib Collecting matplotlib Using cached matplotlib-1.5.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-6eka4_fr/matplotlib/setup.py", line 167, in <module> result = package.check() File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 980, in check min_version='1.2', version=version) File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 459, in _check_for_pkg_config if (not is_min_version(version, min_version)): File "/tmp/pip-build-6eka4_fr/matplotlib/setupext.py", line 179, in is_min_version return found_version >= expected_version File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 70, in __ge__ c = self._cmp(other) File "/sw/arch/Test2/lib/python3.5/distutils/version.py", line 337, in _cmp if self.version < other.version: TypeError: unorderable types: str() < int() ============================================================================ Edit setup.cfg to change the build options BUILDING MATPLOTLIB matplotlib: yes [1.5.1] python: yes [3.5.1 (default, Jun 16 2016, 11:03:02) [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]] platform: yes [linux] REQUIRED DEPENDENCIES AND EXTENSIONS numpy: yes [version 1.11.0] dateutil: yes [using dateutil version 2.5.3] pytz: yes [using pytz version 2016.4] cycler: yes [using cycler version 0.10.0] tornado: yes [using tornado version 4.3] pyparsing: yes [using pyparsing version 2.1.5] libagg: yes [pkg-config information for 'libagg' could not be found. Using local copy.] freetype: yes [version unknown] ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6eka4_fr/matplotlib/ What am I missing here please? Thanks, Alan PS. btw, with python 2.7.11 all went fine. |
From: Nelle V. <nel...@gm...> - 2016-06-07 15:03:42
|
For information on Euroscipy. Thanks, N ---------- Forwarded message ---------- From: "Pierre de Buyl" <pie...@ch...> Date: Jun 7, 2016 6:59 AM Subject: Re: [SciPy-User] [Numpy-discussion] EuroSciPy 2016 To: <num...@sc...>, <sci...@sc...> Cc: Dear NumPy and SciPy communities, On Tue, May 31, 2016 at 03:05:23PM +0200, Pierre de Buyl wrote: > EuroSciPy 2016 takes place in Erlangen, Germany, from the 23 to the 27 of August > and consists of two days of tutorials (beginner and advanced tracks) and two > days of conference representing many fields of science, with a focus on Python > tools for science. A day of sprints follows (sprints TBA). > > The keynote speakers are Gaël Varoquaux and Abby Cabunoc Mayes and we can expect > a rich tutorial and scientific program! Videos from previous years are available > at https://www.youtube.com/playlist?list=PLYx7XA2nY5GeQCCugyvtnHMVLdhYlrRxH and > https://www.youtube.com/playlist?list=PLYx7XA2nY5Gcpabmu61kKcToLz0FapmHu > > Visit us, register and submit an abstract on our website! > https://www.euroscipy.org/2016/ EuroSciPy 2016 has extended the deadline for submitting contributions! You have until the 19th of june to submit a talk/poster/tutorial at https://www.euroscipy.org/2016/ SciPythonic regards, The EuroSciPy 2016 team _______________________________________________ SciPy-User mailing list Sci...@sc... https://mail.scipy.org/mailman/listinfo/scipy-user |
From: Matěj T. <mat...@gm...> - 2016-06-04 14:13:39
|
Hello, consider a case when I want to draw a patch, but it is important how the border is drawn. For example, if I have an aerial photo and I would like to add a rectangle of given dimensions as a reference. Having the rectangle interior white and its border thick and black is good, because it ensures that the reference will be always clearly visible, regardless of whether the photo is dark or bright. However, as the border is thick, it may significantly overlap with the interior, which is highly unwanted, because it will look smaller. Therefore, in this case, I would like to draw the border, but all of it should be outside of the patch primary area. And I am sure that there are use cases for the opposite situation. TL;DR: Take a look at the attached picture to see what I have in mind - I would like to use "outer borders" (red) or "inner borders", or classical ones, depending on my needs. Is there a user possibility to influence how the border is drawn? If not, how difficult would it be to implement this in matplotlib? |
From: Thomas C. <tca...@gm...> - 2016-06-01 00:00:06
|
python -m pip install --upgrade pip # upgrade pip to latest pip install --pre matplotlib Should now work on all platforms. Tom On Tue, May 31, 2016 at 6:31 PM Skip Montanaro <sk...@po...> wrote: > > A build of the docs is available at http://matplotlib.org/2.0.0b1 > > Thanks. Is there a "What's New" page in the docs? Or maybe an upgrade > guide which identifies incompatibilities with 1.5? > > Skip Montanaro > who still remembers John Hunter's interview presentation at TradeLink, > lo these many years ago... > |
From: Skip M. <sk...@po...> - 2016-05-31 22:31:22
|
> A build of the docs is available at http://matplotlib.org/2.0.0b1 Thanks. Is there a "What's New" page in the docs? Or maybe an upgrade guide which identifies incompatibilities with 1.5? Skip Montanaro who still remembers John Hunter's interview presentation at TradeLink, lo these many years ago... |
From: Matthew B. <mat...@gm...> - 2016-05-31 20:06:58
|
On Mon, May 30, 2016 at 9:01 PM, Thomas Caswell <tca...@gm...> wrote: > Folks, > > We tagged the first beta for v2.0.0 tonight. Please check out the new > defaults! > > This is tagged as a beta because we anticipate a longer than normal release > cycle. The style changes are substantial and we want to make sure that we > have not crippled any common use cases. The target for the final release > around scipy. You should now be able to get this release on OSX or Linux with: python -m pip install --upgrade pip # upgrade pip to latest pip install --pre matplotlib Cheers, Matthew |
From: Thomas C. <tca...@gm...> - 2016-05-31 04:02:08
|
Folks, We tagged the first beta for v2.0.0 tonight. Please check out the new defaults! This is tagged as a beta because we anticipate a longer than normal release cycle. The style changes are substantial and we want to make sure that we have not crippled any common use cases. The target for the final release around scipy. A build of the docs is available at http://matplotlib.org/2.0.0b1 Preview conda packages are available via conda install -c conda-forge/label/rc -c conda-forge matplotlib pre-release packages should be on pypi tomorrow. Brief release notes: This previews the new default style and many bug-fixes. A full list of the style changes will be collected for the final release. In addition to the style change this release includes: - overhaul of font handling/text rendering to be faster and clearer - many new rcParams - Agg based OSX backend - optionally deterministic SVGs - complete re-write of image handling code - simplified color conversion - specify colors in the global property cycle via `'C0'`, `'C1'`... `'C9'` - use the global property cycle more places (bar, stem, scatter) There is a 'classic' style sheet which reproduces the 1.Y defaults: import matplotlib.style as mstyle mstyle.use('classic') A big thank you to everyone who worked on this release. Tom |
From: Courtenay G. \(Enthought\) <cgo...@en...> - 2016-05-19 18:39:37
|
**ANN: SciPy 2016 Conference (Scientific Computing with Python): Tutorials and Talks Announced** We're excited to announce this year's accepted Talks <http://scipy2016.scipy.org/ehome/146062/332963/> & Posters and Tutorial Schedule <http://scipy2016.scipy.org/ehome/146062/332960/> ! This year's 3 major talk tracks include Python in Data Science, High Performance Computing, and general Scientific Computing. Our six mini-symposia include: Earth and Space Science, Engineering, Medicine and Biology, Case Studies in Industry, Education, and Reproducibility. For tutorials, you can choose from <http://scipy2016.scipy.org/ehome/146062/332960/> 18 different SciPy tutorials, including a <https://katyhuff.github.io/2016-07-11-scipy> 1 day Software Carpentry Scientific Python course that assumes some programming experience but no Python knowledge, or a 2-day Software Carpentry Instructor Training. We hope you'll join us - early bird registration ENDS May 22, 2016. Register at: http://scipy2016.scipy.org/ehome/146062/332936/ About SciPy 2016 SciPy 2016 <http://www.scipy2016.scipy.org> , the 15th annual Scientific Computing with Python conference, will be held July 11-17, 2016 in Austin, Texas. SciPy is a community dedicated to the advancement of scientific computing through open source Python software for mathematics, science, and engineering. The annual SciPy Conference brings together over 650 participants from industry, academia, and government to showcase their latest projects, learn from skilled users and developers, and collaborate on code development. The full program will consist of <http://scipy2016.scipy.org/ehome/146062/332960/> 2 days of tutorials (July 11-12), <http://scipy2016.scipy.org/ehome/146062/332963/> 3 days of talks (July 13-15), and 2days of <http://scipy2016.scipy.org/ehome/146062/332969/?&&> developer sprints (July 16-17). More info is available on the conference website at <http://www.scipy2016.scipy.org> http://scipy2016.scipy.org (where you can sign up for the mailing list); or follow <https://twitter.com/scipyconf> @scipyconf on Twitter. |
From: Paul H. <pmh...@gm...> - 2016-04-26 06:53:56
|
Viridis is in the `cm` submodule. from matplotlib import cm cmap = cm.viridis On Mon, Apr 25, 2016 at 6:24 PM, Sudheer Joseph <sud...@ya...> wrote: > Hi Paul, > > I tried to get the new colormap suggestion from you but could not get the > colormap package. Where can I get it? google search did not took me to the > package/ > Is it a development package? > May I know how to use viridis color map with an example plot? > > > Below is an example code from the link you send > > ''' > For each colormap, plot the lightness parameter L* from CIELAB colorspace > along the y axis vs index through the colormap. Colormaps are examined in > categories as in the original matplotlib gallery of colormaps. > ''' > > from colormaps import cmaps > import numpy as np > import matplotlib.pyplot as plt > from matplotlib import cm > import matplotlib as mpl > from colorspacious import cspace_converter > > > > *************************************************************** 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 > *************************************************************** > > -------------------------------------------- > On Mon, 25/4/16, Paul Hobson <pmh...@gm...> wrote: > > Subject: Re: [Matplotlib-users] subplot layout > To: "Sudheer Joseph" <sud...@ya...> > Cc: "Matplotlib Users" <mat...@li...> > Date: Monday, 25 April, 2016, 4:33 PM > > 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: Sudheer J. <sud...@ya...> - 2016-04-26 01:28:01
|
Hi Paul, I tried to get the new colormap suggestion from you but could not get the colormap package. Where can I get it? google search did not took me to the package/ Is it a development package? May I know how to use viridis color map with an example plot? Below is an example code from the link you send ''' For each colormap, plot the lightness parameter L* from CIELAB colorspace along the y axis vs index through the colormap. Colormaps are examined in categories as in the original matplotlib gallery of colormaps. ''' from colormaps import cmaps import numpy as np import matplotlib.pyplot as plt from matplotlib import cm import matplotlib as mpl from colorspacious import cspace_converter *************************************************************** 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 *************************************************************** -------------------------------------------- On Mon, 25/4/16, Paul Hobson <pmh...@gm...> wrote: Subject: Re: [Matplotlib-users] subplot layout To: "Sudheer Joseph" <sud...@ya...> Cc: "Matplotlib Users" <mat...@li...> Date: Monday, 25 April, 2016, 4:33 PM 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: Sudheer J. <sud...@ya...> - 2016-04-25 23:50:15
|
Thank you Paul, Thanks for the tips related to margins and also about colormaps. Is there a way to stop the automatic aspect ratio setting ( though it it distors map in present case ) if I wanted to use that for other plots? 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 *************************************************************** -------------------------------------------- On Mon, 25/4/16, Paul Hobson <pmh...@gm...> wrote: Subject: Re: [Matplotlib-users] subplot layout To: "Sudheer Joseph" <sud...@ya...> Cc: "Matplotlib Users" <mat...@li...> Date: Monday, 25 April, 2016, 4:33 PM 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/ |
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 > > |