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




Showing 9 results of 9

On 2015年06月07日 12:05 PM, Nathaniel Smith wrote:
> On Sun, Jun 7, 2015 at 2:37 PM, Eric Firing <ef...@ha...> wrote:
>> Matplotlib's pyplot retains quite a few vestiges from its original
>> Matlab-workalike heritage; we would like to gradually eliminate those
>> that no longer make sense. One such candidate is the "hold" kwarg that
>> every pyplot function has, with a "True" default. I don't think it
>> serves any useful purpose now, and getting rid of it would allow
>> considerable simplification to the code and, to a lesser extent, the
>> documentation. The default behavior would not change, only the ability
>> to change that behavior via either the rcParams['axes.hold'] parameter
>> or the "hold" kwarg in a pyplot function call.
>>
>> If you routinely use 'hold=False' and believe that removing it would be
>> a mistake, please let us know.
>
> I do actually use it with some regularity interactively, though I'm
> not particularly attached to it. Is there some equivalent though, like
> plt.whatever(..., hold=False)
> can become
> plt.clear(); plt.whatever(...)
It's exactly equivalent to:
	plt.cla(); plt.whatever(...)
> ? The semantics would be that the current figure remains the current
> figure, but is reset so that the next operation starts from scratch. I
> notice that plt.clear() does not exist, but maybe it has another
> spelling :-).
There are two types of "clear":
	plt.clf() # clear the current Figure
	plt.cla() # clear the current Axes
Eric
>
> (Basically the use case here is getting something like the
> edit-and-rerun-a-cell workflow, but when using a classic interactive
> REPL rather than the ipython notebook -- so I have a specific plot
> window up on my screen at a size and place where I can see it, and
> maybe some other plots in other windows in the background somewhere,
> and I want to quickly display different things into that window.)
>
> -n
>
From: Nathaniel S. <nj...@po...> - 2015年06月07日 22:05:42
On Sun, Jun 7, 2015 at 2:37 PM, Eric Firing <ef...@ha...> wrote:
> Matplotlib's pyplot retains quite a few vestiges from its original
> Matlab-workalike heritage; we would like to gradually eliminate those
> that no longer make sense. One such candidate is the "hold" kwarg that
> every pyplot function has, with a "True" default. I don't think it
> serves any useful purpose now, and getting rid of it would allow
> considerable simplification to the code and, to a lesser extent, the
> documentation. The default behavior would not change, only the ability
> to change that behavior via either the rcParams['axes.hold'] parameter
> or the "hold" kwarg in a pyplot function call.
>
> If you routinely use 'hold=False' and believe that removing it would be
> a mistake, please let us know.
I do actually use it with some regularity interactively, though I'm
not particularly attached to it. Is there some equivalent though, like
 plt.whatever(..., hold=False)
can become
 plt.clear(); plt.whatever(...)
? The semantics would be that the current figure remains the current
figure, but is reset so that the next operation starts from scratch. I
notice that plt.clear() does not exist, but maybe it has another
spelling :-).
(Basically the use case here is getting something like the
edit-and-rerun-a-cell workflow, but when using a classic interactive
REPL rather than the ipython notebook -- so I have a specific plot
window up on my screen at a size and place where I can see it, and
maybe some other plots in other windows in the background somewhere,
and I want to quickly display different things into that window.)
-n
-- 
Nathaniel J. Smith -- http://vorpus.org
From: Paul H. <pmh...@gm...> - 2015年06月07日 21:43:30
Attachments: image.png
Juan,
It is, of course, very difficult to give any concrete advice without
knowing how your data are stored.
In any case, seaborn builds on matplotlib to provide some very advanced
visualization through very concise code.
I recommend you look into the seaborn.distplot function and
seaborn,FacetGrid class.
http://web.stanford.edu/~mwaskom/software/seaborn/
-Paul
On Fri, Jun 5, 2015 at 9:14 AM, Juan Wu <wuj...@gm...> wrote:
> Hi, Experts,
>
> My colleagues and I have a question, how we can make a plot via python
> like below. According to a guy's original paper, "Each panel shows the
> normalized histograms of the observed data (bar plots) and the model
> prediction (black lines) ".
>
> I believe that people can make it with Matplotlib. Any code suggestion
> (with simple example data) would be much appreciated.
>
> (I am more comfortable with Matlab, but now the python code is preferred).
>
> J
>
>
> [image: Inline image 3]
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Eric F. <ef...@ha...> - 2015年06月07日 21:37:51
Matplotlib's pyplot retains quite a few vestiges from its original 
Matlab-workalike heritage; we would like to gradually eliminate those 
that no longer make sense. One such candidate is the "hold" kwarg that 
every pyplot function has, with a "True" default. I don't think it 
serves any useful purpose now, and getting rid of it would allow 
considerable simplification to the code and, to a lesser extent, the 
documentation. The default behavior would not change, only the ability 
to change that behavior via either the rcParams['axes.hold'] parameter 
or the "hold" kwarg in a pyplot function call.
If you routinely use 'hold=False' and believe that removing it would be 
a mistake, please let us know.
Thanks.
Eric
From: Bryan W. <bry...@gm...> - 2015年06月07日 20:44:23
If you have pip installed, installing six is simple:
pip install six
Hope that helps! :)
On 6/7/2015 3:57 PM, aureta wrote:
> Hi, I had Matplotlib installed and working in my PC. I decided to uninstall
> it using the control panel software uninstall option and install it again.
> This time when I run the VIDLE using the import matplot.pyplot as plt
> sentence I get the following message:
>
> Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
> on win32
> Type "copyright", "credits" or "license()" for more information.
>>>> ================================ RESTART
>>>> ================================
>>>>
> Traceback (most recent call last):
> File "Untitled", line 1
> import matplotlib.pyplot as plt
> File "C:\Python27\Lib\site-packages\matplotlib\__init__.py", line 105
> import six
> ImportError: No module named six
>
>
> --
> View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-import-Error-tp45741.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: aureta <ale...@gm...> - 2015年06月07日 20:01:44
 Hi, I had Matplotlib installed and working in my PC. I decided to uninstall
 it using the control panel software uninstall option and install it again.
 This time when I run the VIDLE using the import matplot.pyplot as plt
 sentence I get the following message:
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART
>>> ================================
>>> 
Traceback (most recent call last):
 File "Untitled", line 1
 import matplotlib.pyplot as plt
 File "C:\Python27\Lib\site-packages\matplotlib\__init__.py", line 105
 import six
ImportError: No module named six
>>> 
Can someone help me in getting Matplotlib working again? Thanks...
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/MatplotLib-Import-Error-tp45742.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: aureta <ale...@gm...> - 2015年06月07日 19:57:13
Hi, I had Matplotlib installed and working in my PC. I decided to uninstall
it using the control panel software uninstall option and install it again.
 This time when I run the VIDLE using the import matplot.pyplot as plt
 sentence I get the following message:
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART
>>> ================================
>>> 
Traceback (most recent call last):
 File "Untitled", line 1
 import matplotlib.pyplot as plt
 File "C:\Python27\Lib\site-packages\matplotlib\__init__.py", line 105
 import six
ImportError: No module named six
>>> 
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-import-Error-tp45741.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Thomas C. <tca...@gm...> - 2015年06月07日 19:11:32
Attachments: image.png
Juan,
If you join the mailing list you will be able to post without moderation.
Those look like a combination of `ax.hist` or `ax.bar` + `ax.plot(x, y,
lw=3, c='k')` + `fig, ax_list = plt.subplots(1, 6)` + turning off some of
the spines + `fig.text` for the shared axes labels and `fig.suptitle` for
the titles.
Tom
On Sun, Jun 7, 2015 at 3:06 PM Juan Wu <wuj...@gm...> wrote:
> Hi, Experts,
>
> My colleagues and I have a question, how we can make a plot via python
> like below. According to a guy's original paper, "Each panel shows the
> normalized histograms of the observed data (bar plots) and the model
> prediction (black lines) ".
>
> I believe that people can make it with Matplotlib. Any code suggestion
> (with simple example data) would be much appreciated.
>
> (I am more comfortable with Matlab, but now the python code is preferred).
>
> J
>
>
> [image: Inline image 3]
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Joe K. <jof...@gm...> - 2015年06月07日 00:16:25
> Guess I'll be closing this:
> https://github.com/matplotlib/matplotlib/pull/3858
> -paul
Nice PR! That does a heck of a lot better job than my (way too simplistic)
example.
> On Fri, Jun 5, 2015 at 10:05 PM, Jody Klymak <jk...@uv...> wrote:
> Hi Eric,
>
> OK, how about an example based on the following notebook:
>
>
http://nbviewer.ipython.org/url/web.uvic.ca/~jklymak/matplotlib/MatplotlibNormExamples.ipynb
Those are extremely nice examples, by the way!

Showing 9 results of 9

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 によって変換されたページ (->オリジナル) /