SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: samwo <su...@gm...> - 2008年04月28日 03:09:39
Hi.
I run these codes in ipython command line interface.
from pylab import *
subplot(211)
plot([1,2,3],[1,2,3])
set(gca(), xtickslabel = [])
and got the error saying "Type error: set() does not take keyword arguments"
My OS is windows XP. The code I used is copied from matplotlib tutorial. 
Pls help explain why it didnt work.
Thanks.
Sam
-- 
View this message in context: http://www.nabble.com/pls-help%3A-error-using-set%28gca%28%29%2C...%29-tp16930305p16930305.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Matthias M. <Mat...@gm...> - 2008年04月29日 14:43:19
Hi Sam,
On Monday 28 April 2008 05:09:36 samwo wrote:
> Hi.
>
> I run these codes in ipython command line interface.
>
> from pylab import *
> subplot(211)
> plot([1,2,3],[1,2,3])
There is a small typo (or a wrong method):
> set(gca(), xtickslabel = [])
needs to be 
setp(gca(), xticklabels = [])
> and got the error saying "Type error: set() does not take keyword
> arguments" My OS is windows XP. The code I used is copied from matplotlib
> tutorial. Pls help explain why it didnt work.
regards Matthias
From: samwo <su...@gm...> - 2008年04月30日 19:24:27
Thank you all for your help.
Regards,
Sam
Matthias Michler wrote:
> 
> Hi Sam,
> 
> On Monday 28 April 2008 05:09:36 samwo wrote:
>> Hi.
>>
>> I run these codes in ipython command line interface.
>>
>> from pylab import *
>> subplot(211)
>> plot([1,2,3],[1,2,3])
> There is a small typo (or a wrong method):
>> set(gca(), xtickslabel = [])
> needs to be 
> setp(gca(), xticklabels = [])
> 
>> and got the error saying "Type error: set() does not take keyword
>> arguments" My OS is windows XP. The code I used is copied from matplotlib
>> tutorial. Pls help explain why it didnt work.
> 
> regards Matthias
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://www.nabble.com/pls-help%3A-error-using-set%28gca%28%29%2C...%29-tp16930305p16989834.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: John H. <jd...@gm...> - 2008年04月29日 14:46:59
On Sun, Apr 27, 2008 at 10:09 PM, samwo <su...@gm...> wrote:
>
> Hi.
>
> I run these codes in ipython command line interface.
>
> from pylab import *
> subplot(211)
> plot([1,2,3],[1,2,3])
> set(gca(), xtickslabel = [])
"set" is a python built-in (the mathematical set) and matplotlib now
uses "setp" (for set property) instead.
JDH
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 によって変換されたページ (->オリジナル) /