Re: [Matplotlib-users] problem: AttributeError: 'float' object has no attribute 'trace'

2015-06-03 Thread Yuxiang Wang
"v_C(Value_Cond, > Treatment('Neutral'))[T.Loss]"], 'node'] > #hddm.analyze.plot_posterior_nodes([v_Neutral, v_Win, v_Loss]) > hddm.analyze.plot_posterior_nodes([float(v_Neutral), float(v_Win), > float(v_Loss)]) > plt.xlabel('drift-rate'

Re: [Matplotlib-users] problem: AttributeError: 'float' object has no attribute 'trace'

2015-06-03 Thread Yuxiang Wang
Hi Juan, Could you post a minimal code to reproduce your issue? Shawn On Wed, Jun 3, 2015 at 2:03 PM, Juan Wu wrote: > Hi, List experts, > > Any one can help for this error solution? I googled but did not find this > report. > > Thanks in adance... > > > Traceback (most recent call last): > >

Re: [Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread Yuxiang Wang
eon'] = False mpl.rcParams['legend.fontsize'] = 8 mpl.rcParams['legend.handlelength'] = 3 # Subplot frame line mpl.rcParams['axes.linewidth'] = .5 I would be happy to know if there's a better/different way to do it. Shawn On Tue, May 19, 2015 at 5:49 PM,

Re: [Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread Yuxiang Wang
Are you using IPython QtConsole / Notebook? I think they have their own settings on their backend. Shawn On Tue, May 19, 2015 at 11:01 AM, mato wrote: > I want to change the look of the default plots in Python, so I created the > file matplotlibrc in the current working directory (Windows 7). Th

Re: [Matplotlib-users] Problem with errorbar and log axis

2015-04-07 Thread Yuxiang Wang
Typo - "standard deviation OR standard error of mean", not "OF". Sorry. Shawn On Tue, Apr 7, 2015 at 10:39 AM, Yuxiang Wang wrote: > If you error bars denote standard deviation of standard error of mean, > shouldn't they be non-symmetric in log scale? > >

Re: [Matplotlib-users] Problem with errorbar and log axis

2015-04-07 Thread Yuxiang Wang
If you error bars denote standard deviation of standard error of mean, shouldn't they be non-symmetric in log scale? Shawn On Tue, Apr 7, 2015 at 10:11 AM, Markus Haider wrote: > Hi, > > I am trying to make an errorbar plot with a logarithmic x-axis. I have > symmetric errors in logspace, howeve

[Matplotlib-users] 'c' Keyword for color not working with latest IPython 3.0.0

2015-03-30 Thread Yuxiang Wang
Dear all, I have tried both latest Anaconda and WinPython in Windows 7, 64-bit system, with Python 3.4 64-bit, and both run into this issue: 1) Open up a new IPython QtConsole (version 3.0.0), and make sure matplotlib version is 1.4.3 2) It doesn't matter which backend you are using. Do: ```pytho

Re: [Matplotlib-users] Plotting style

2015-03-04 Thread Yuxiang Wang
Hi Marin, +1 for the idea of specific papers. For example, all PLOS require the same figure format and I have my own config file. I'd be more than happy to dig into it and try my best to contribute. Shawn On Wed, Mar 4, 2015 at 4:27 PM, Marin GILLES wrote: > Le 04/03/2015 06:21, Tony Yu a écrit

Re: [Matplotlib-users] [matplotlib-devel] Matplotlib and Numfocus Fiscal Sponsorship Agreement (FSA)

2015-01-21 Thread Yuxiang Wang
+1 - that's really great news! -Shawn On Wed, Jan 21, 2015 at 2:36 PM, Nicolas P. Rougier wrote: > > +1. Great news. > > Nicolas. > >> On 21 Jan 2015, at 20:22, Chris Barker wrote: >> >> +1 -- sounds great! >> >> >> >> On Tue, Jan 20, 2015 at 7:48 AM, Michael Droettboom wrote: >> Matplotlib >>

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Yuxiang Wang
Hi Eric, Thank you for your very clear explanation. -Shawn On Mon, May 12, 2014 at 3:23 AM, Eric Firing wrote: > On 2014/05/11 7:56 PM, Yuxiang Wang wrote: >> Dear all, >> >> I am curious that whether this is possible in matplotlib: >> >> I first c

[Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-11 Thread Yuxiang Wang
Dear all, I am curious that whether this is possible in matplotlib: I first create some figures, with subplots. import matplotlib.pyplot as plt fig1, axs1 = plt.subplots(2, 2) fig2, axs2 = plt.subplots(2, 2) And then, could I recombine them, so fig3 is composed of the first row in fig1 (i.e., a

[Matplotlib-users] Set sharex and sharey on the axes object

2014-05-07 Thread Yuxiang Wang
Dear all, I was wondering that, is there a method like axes.set_sharex(ax0) so I can directly set the sharex and sharey properties of an axes object? It seems that the only way to do this is at time of creation via fig.add_subplots(1, 2, 2, sharex=ax0). If I have already created the axes using the

Re: [Matplotlib-users] Which api to learn?

2014-05-01 Thread Yuxiang Wang
Hi Neal, I always followed what has been written here: http://matplotlib.org/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related And they said, -- Matplotlib, pylab, and pyplot: how are they related? Matplotlib is the whole package; pylab is a module in matplotl