SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S




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

Showing 14 results of 14

From: Tom A. <ald...@he...> - 2010年04月25日 23:11:46
I've run into a case where the rendering in a line plot is incomplete
and some lines are not drawn at all. I submitted a question to
matplotlib-users with the same subject. Eric Firing responded that
this is a manifestation of the "infamous path simplification" bug,
which should be fixed in svn. However, the script below shows the
same problem for me using the current svn on CentOS-5 with python 2.6.
 For my purposes setting path.simplify to False is fine but Eric
requested that I provide an example, so here it is:
import numpy
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
y = numpy.array([
 4., 2., 2., 3., 3., 2., 2., 6., 6., 5., 5., 4., 4.,
 7., 7., 2., 2., 4., 4., 2., 2., 2., 2., 4., 4., 4.,
 4., 4., 4., 7., 7., 3., 3., 5., 5., 4., 4., 5., 5.,
 4., 4., 7., 7., 6., 6., 2., 2., 2., 2., 5., 5., 4.,
 4., 4., 4., 6., 6., 3., 3., 4., 4., 3., 3., 2., 2.,
 3., 3., 4., 4., 4., 4., 4., 4., 6., 6., 5., 5., 4.,
 4., 7., 7., 3., 3., 4., 4., 4., 4., 5., 5., 4., 4.,
 7., 7., 3., 3., 4., 4., 4., 4., 6., 6., 4., 4., 4.,
 4., 4., 4., 2., 2., 5., 5., 6., 6., 3., 3., 5., 5.,
 4., 4., 0., 0., 5., 5., 1., 1., 4., 4., 5., 5., 4.])
plt.figure(figsize=(7,4))
plt.plot(y)
plt.savefig('test.png')
plt.xlim(-12000, 8274)
plt.savefig('test_panned.png')
- Tom
From: Neal B. <ndb...@gm...> - 2010年04月25日 19:15:29
Gökhan Sever wrote:
> On Sun, Apr 25, 2010 at 1:37 PM, Neal Becker
> <ndb...@gm...> wrote:
> 
>> Qt4Agg is the one that I used first - the one that doesn't work.
>>
> 
> Pardon my wrong guess :) Sometimes this Linux world goes beyond/behind my
> expectations...
> Can you run another Qt4 application properly?
> 
I'm sure I've used lots of PyQt4 apps before.
I just tried hp-toolbox, which seems to be PyQt4, and AFAICT it is working. 
Of course, matplotlib partly works also. Just the save dialog is broken.
From: Gökhan S. <gok...@gm...> - 2010年04月25日 18:44:47
On Sun, Apr 25, 2010 at 1:37 PM, Neal Becker <ndb...@gm...> wrote:
> Qt4Agg is the one that I used first - the one that doesn't work.
>
Pardon my wrong guess :) Sometimes this Linux world goes beyond/behind my
expectations...
Can you run another Qt4 application properly?
-- 
Gökhan
From: Neal B. <ndb...@gm...> - 2010年04月25日 18:38:30
Gökhan Sever wrote:
> On Sun, Apr 25, 2010 at 1:28 PM, Neal Becker
> <ndb...@gm...> wrote:
> 
>> savefig works fine.
>>
>> Using 'gtk' backend I can save, but seems to have other problems.
>>
>> Using recommended TkAgg I get error that
>> ImportError: No module named backend_tkagg
>>
> 
> You will have to make some installations to bring TkAgg alive. I would
> suggest trying also the Qt4Agg backend since KDE based on Qt. It is always
> a good idea to use the package manager for these. Let me know if this
> helps.
Qt4Agg is the one that I used first - the one that doesn't work.
From: Gökhan S. <gok...@gm...> - 2010年04月25日 18:36:16
On Sun, Apr 25, 2010 at 1:28 PM, Neal Becker <ndb...@gm...> wrote:
> savefig works fine.
>
> Using 'gtk' backend I can save, but seems to have other problems.
>
> Using recommended TkAgg I get error that
> ImportError: No module named backend_tkagg
>
You will have to make some installations to bring TkAgg alive. I would
suggest trying also the Qt4Agg backend since KDE based on Qt. It is always a
good idea to use the package manager for these. Let me know if this helps.
From: Neal B. <ndb...@gm...> - 2010年04月25日 18:29:21
Gökhan Sever wrote:
> On Sun, Apr 25, 2010 at 1:02 PM, Neal Becker
> <ndb...@gm...> wrote:
> 
>> Yes, I get this:
>>
>> kfilemodule(29192)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems:
>> No node found for item that was just removed:
>> KUrl("file:///home/nbecker/test1.cs")
>> kfilemodule(29192): couldn't create slave: "Unable to create io-slave:
>> klauncher said: Unknown protocol ''.
>> "
>> kfilemodule(29192): couldn't create slave: "Unable to create io-slave:
>> klauncher said: Unknown protocol ''.
>> "
>>
> 
> Very specific KDE errors. Sorry can't comment on these errors.
> 
> 
>>
>> Have not tried savefig or other backend. (Have to learn how to use
>> savefig first)
>>
> 
> These are easy. Within IPython -pylab run your script with run myscript.py
> . Then do a plt.savefig("myplot.png") or whatever extension available to
> you. To change the backend go into your .matplotlib directory and edit
> matplotlibrc file. Find backend keyword and experiment with the available
> backends to see if you can reproduce that error.
> 
savefig works fine.
Using 'gtk' backend I can save, but seems to have other problems.
Using recommended TkAgg I get error that 
ImportError: No module named backend_tkagg
From: Miguel de V. B. <mig...@gm...> - 2010年04月25日 18:21:45
Hello,
The amplitude of sharp peaks is not shown correctly when several plots
are stitched together and the x scale becomes very large. I have
noticed this problem with the pdf and png backends in the attached
script.
Best regards,
Miguel
From: Gökhan S. <gok...@gm...> - 2010年04月25日 18:11:01
On Sun, Apr 25, 2010 at 1:02 PM, Neal Becker <ndb...@gm...> wrote:
> Yes, I get this:
>
> kfilemodule(29192)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No
> node found for item that was just removed:
> KUrl("file:///home/nbecker/test1.cs")
> kfilemodule(29192): couldn't create slave: "Unable to create io-slave:
> klauncher said: Unknown protocol ''.
> "
> kfilemodule(29192): couldn't create slave: "Unable to create io-slave:
> klauncher said: Unknown protocol ''.
> "
>
Very specific KDE errors. Sorry can't comment on these errors.
>
> Have not tried savefig or other backend. (Have to learn how to use savefig
> first)
>
These are easy. Within IPython -pylab run your script with run myscript.py .
Then do a plt.savefig("myplot.png") or whatever extension available to you.
To change the backend go into your .matplotlib directory and edit
matplotlibrc file. Find backend keyword and experiment with the available
backends to see if you can reproduce that error.
-- 
Gökhan
From: Neal B. <ndb...@gm...> - 2010年04月25日 18:02:53
Gökhan Sever wrote:
> On Sun, Apr 25, 2010 at 12:52 PM, Neal Becker
> <ndb...@gm...> wrote:
> 
>> Yes, I meant the 'save' button in the upper right.
>>
>> It used to work, but some update seems to have broken it. Strange, so
>> far the only application that shows a problem like this (and I do use a
>> lot of different apps!)
>>
> 
> Do you get any error messages behind the scenes? Does it work when you
> save the plot using savefig? Is it same with different backends? I am on
> GNOME. You seem to like using KDE, right?
> 
Yes, I get this:
kfilemodule(29192)/kio (KDirModel) KDirModelPrivate::_k_slotDeleteItems: No 
node found for item that was just removed: 
KUrl("file:///home/nbecker/test1.cs") 
kfilemodule(29192): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
" 
kfilemodule(29192): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
Yes, I am on KDE.
Have not tried savefig or other backend. (Have to learn how to use savefig 
first) 
From: Gökhan S. <gok...@gm...> - 2010年04月25日 17:57:36
On Sun, Apr 25, 2010 at 12:52 PM, Neal Becker <ndb...@gm...> wrote:
> Yes, I meant the 'save' button in the upper right.
>
> It used to work, but some update seems to have broken it. Strange, so far
> the only application that shows a problem like this (and I do use a lot of
> different apps!)
>
Do you get any error messages behind the scenes? Does it work when you save
the plot using savefig? Is it same with different backends? I am on GNOME.
You seem to like using KDE, right?
-- 
Gökhan
From: Neal B. <ndb...@gm...> - 2010年04月25日 17:52:35
Gökhan Sever wrote:
> On Sun, Apr 25, 2010 at 12:33 PM, Neal Becker
> <ndb...@gm...> wrote:
> 
>> python-matplotlib-0.99.1.2-1.fc12.x86_64
>>
>> When I hit 'print' button, I get a partially painted dialog. Screenshot
>> attached. This is repeatable on 2 different machines.
>>
> 
> I am on Fedora 12. Where is print button in matplotlib? You meant the save
> dialog? If that's the case I don't see any problem using the svn version
> of mpl.
> 
> I build sources manually ->
> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn
> 
> Similarly I build numpy and scipy from sources too. If available I use
> easy_install for some packages, otherwise mostly manual builds. (Except
> the Python itself.) This might be confusing since I use the package
> manager to install dependencies most of the time. Once in a while I see
> some packages requiring older numpy builds, also when I try to uninstall
> some packages via package manager it tries to uninstall more packages (the
> critical ones) than what is installed. Not always required but manual
> builds give more control and easy to manage on some occurrences like in
> matplotlib build case.
> 
Yes, I meant the 'save' button in the upper right.
It used to work, but some update seems to have broken it. Strange, so far 
the only application that shows a problem like this (and I do use a lot of 
different apps!)
From: Gökhan S. <gok...@gm...> - 2010年04月25日 17:48:56
On Sun, Apr 25, 2010 at 12:33 PM, Neal Becker <ndb...@gm...> wrote:
> python-matplotlib-0.99.1.2-1.fc12.x86_64
>
> When I hit 'print' button, I get a partially painted dialog. Screenshot
> attached. This is repeatable on 2 different machines.
>
I am on Fedora 12. Where is print button in matplotlib? You meant the save
dialog? If that's the case I don't see any problem using the svn version of
mpl.
I build sources manually ->
http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn
Similarly I build numpy and scipy from sources too. If available I use
easy_install for some packages, otherwise mostly manual builds. (Except the
Python itself.) This might be confusing since I use the package manager to
install dependencies most of the time. Once in a while I see some packages
requiring older numpy builds, also when I try to uninstall some packages via
package manager it tries to uninstall more packages (the critical ones) than
what is installed. Not always required but manual builds give more control
and easy to manage on some occurrences like in matplotlib build case.
-- 
Gökhan
From: Neal B. <ndb...@gm...> - 2010年04月25日 17:33:57
Attachments: snapshot4.png
python-matplotlib-0.99.1.2-1.fc12.x86_64
When I hit 'print' button, I get a partially painted dialog. Screenshot 
attached. This is repeatable on 2 different machines.
From: Michiel de H. <mjl...@ya...> - 2010年04月25日 08:28:24
Eric, Tony, thanks for your replies. I'll look at SciPy then for this functionality.
Thanks,
--Michiel.
--- On Sat, 4/24/10, Eric Firing <ef...@ha...> wrote:
> From: Eric Firing <ef...@ha...>
> Subject: Re: [matplotlib-devel] Lowess smoothing
> To: "Michiel de Hoon" <mjl...@ya...>
> Cc: mat...@li...
> Date: Saturday, April 24, 2010, 2:29 PM
> Michiel de Hoon wrote:
> > Hi everybody,
> > 
> > A number of years ago I wrote a function to do Lowess
> smoothing to calculate a smooth curve through a scatter
> plot. I copied an example script below and attached the
> resulting figure to this mail.
> > I think that such a smoothing function would be a
> useful addition to matplotlib. Does anybody have any
> objections against me adding this to matplotlib? If not,
> what would be a suitable place to put this function?
> > 
> > --Michiel.
> > 
> 
> Michiel,
> 
> Certainly it would be good to have that function available,
> but I'm not in favor of putting it in mpl. The trend
> has been to try to reduce overlap among mpl, numpy, and
> scipy. To that end, scipy seems like the natural home
> for smoothing functions.
> 
> Eric
> 
> > 
> > from pylab import *
> > 
> > x = arange(0,10,0.01)
> > ytrue = exp(-x/5.0) + 2*sin(x/3.0)
> > 
> > # add random errors with a normal distribution 
>        
>   y = ytrue + normal(size=len(x))
> > scatter(x,y,color='cyan')
> > 
> > # calculate a smooth curve through the scatter plot
> > ys = smooth(x, y, 'lowess')
> > plot(x,ys,'red',linewidth=3)
> > 
> > # draw the true values for comparison
> > plot(x,ytrue,'green',linewidth=3)
> > 
> > 
> >    
> > 
> >
> ------------------------------------------------------------------------
> > 
> > 
> >
> ------------------------------------------------------------------------
> > 
> >
> ------------------------------------------------------------------------------
> > 
> > 
> >
> ------------------------------------------------------------------------
> > 
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> 
 

Showing 14 results of 14

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