Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2013-11-06 Thread aperception
Easily patched the 1.3.0 version in Enthought distribution by replacing
matplotlib\backends\qt4_editor\figureoptions.py line 33-34 with:

COLORS = {'c': '#00bfbf', 'b': '#ff', 'w': '#ff', 'g': '#008000',
  'y': '#bfbf00', 'k': '#00', 'r': '#ff', 'm': '#bf00bf'}

Excellent!




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Qt4Agg-backend-edit-curves-and-axis-parameters-tp10161p42468.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2013-11-06 Thread aperception
Dear Thomas,

I replaced figureoptions.py in 1.3.1 with the  corresponding file in your
commit

 
, and can confirm that it has resolved the issue.

Thank you very much! I will start using this patch immediately.

Best Regards,
Tim




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Qt4Agg-backend-edit-curves-and-axis-parameters-tp10161p42467.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2013-11-06 Thread Thomas Hisch
Please check if this PR fixes the problem
https://github.com/matplotlib/matplotlib/pull/2112

Regards
Thomas


On Wed, Nov 6, 2013 at 12:52 PM, aperception wrote:

> Unfortunately this issue with the color changing after editing axis
> parameters still doesn't appear to have been resolved as of 1.3.1 or in the
> latest source. Is there an easy fix for it? It's a very useful feature for
> me because my figure is embedded in a QT4 GUI without easy access to the
> command line.
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/Qt4Agg-backend-edit-curves-and-axis-parameters-tp10161p42461.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> --
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models.
> Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and
> register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2013-11-06 Thread aperception
Unfortunately this issue with the color changing after editing axis
parameters still doesn't appear to have been resolved as of 1.3.1 or in the
latest source. Is there an easy fix for it? It's a very useful feature for
me because my figure is embedded in a QT4 GUI without easy access to the
command line.



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Qt4Agg-backend-edit-curves-and-axis-parameters-tp10161p42461.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread butterw


bevan j wrote:
> 
> Sorry if it has already been reported I searched in the bug reports for
> qt4agg and didn't find anything.  Although I may have been looking in the
> wrong place.
> I have also noticed that editing some parameters (or pressing apply
> without any changes) alters others.  For instance if I have:
> from matplotlib import pyplot 
> import numpy as np 
> 
> a = np.random.rand(12) 
> 
> fig = pyplot.figure() 
> ax = fig.add_subplot(111)
> wdth = 0.20
> ind = np.arange(a.size) 
> mon_ticks =('Jan','Feb','Mar','Apr','May','Jun','Jul', 'Aug', 'Sep',
> 'Oct', 'Nov','Dec')
> ax.bar(ind, a, wdth, color='0.8')
> ax.set_xticks(ind)
> ax.set_xticklabels(mon_ticks)
> pyplot.show() 
> Then pressing apply removes the ticks and tick label setting.
> 
> Hopefully this is adressed in the bug report you mention.  Thanks.
> 

@bevan j: nothing wrong with reporting bugs that should have been solved
long ago.
Patches that correct the issues you mentioned initially have indeed been
submitted, but have not be included in matplotlib as of yet. >> Look in
patches at the mpl tracker.

The last issue with the tick labels on the other hand is more difficult.
Please note that Tick labels are not supported by figure_options currently. 
If you haven't changed any settings that make your ticks go away, it would
be possible to ensure your plot is not messed up by qt4_editor when you
click apply/OK, but this feature has not been implemented yet.
-- 
View this message in context: 
http://old.nabble.com/Qt4Agg-backend---edit-curves-and-axis-parameters-tp29754925p29765678.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 6:44 PM, bevan j  wrote:

>
>
> Benjamin Root-2 wrote:
> >
> > On Sun, Sep 19, 2010 at 5:23 PM, bevan j  wrote:
> >
> >>selindex = value.pop(0)
> >> AttributeError: 'tuple' object has no attribute 'pop'
> >>
> >
> > Didn't we just have a bug report/fix for this one?
> >
> >
> Sorry if it has already been reported I searched in the bug reports for
> qt4agg and didn't find anything.  Although I may have been looking in the
> wrong place.
> I have also noticed that editing some parameters (or pressing apply without
> any changes) alters others.  For instance if I have:
> from matplotlib import pyplot
> import numpy as np
>
> a = np.random.rand(12)
>
> fig = pyplot.figure()
> ax = fig.add_subplot(111)
> wdth = 0.20
> ind = np.arange(a.size)
> mon_ticks =('Jan','Feb','Mar','Apr','May','Jun','Jul', 'Aug', 'Sep', 'Oct',
> 'Nov','Dec')
> ax.bar(ind, a, wdth, color='0.8')
> ax.set_xticks(ind)
> ax.set_xticklabels(mon_ticks)
> pyplot.show()
> Then pressing apply removes the ticks and tick label setting.
>
> Hopefully this is adressed in the bug report you mention.  Thanks.
>

Bevan, don't worry, the question wasn't directed to you.

I found the email I was thinking of:
http://permalink.gmane.org/gmane.comp.python.matplotlib.devel/9212
Titled: [PATCH] Fix line color setting on Qt4

I don't know if this addresses the other issues the Bevan made, though...

Ben Root
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread bevan j


Benjamin Root-2 wrote:
> 
> On Sun, Sep 19, 2010 at 5:23 PM, bevan j  wrote:
> 
>>selindex = value.pop(0)
>> AttributeError: 'tuple' object has no attribute 'pop'
>>
> 
> Didn't we just have a bug report/fix for this one?
> 
> 
Sorry if it has already been reported I searched in the bug reports for
qt4agg and didn't find anything.  Although I may have been looking in the
wrong place.
I have also noticed that editing some parameters (or pressing apply without
any changes) alters others.  For instance if I have:
from matplotlib import pyplot 
import numpy as np 

a = np.random.rand(12) 

fig = pyplot.figure() 
ax = fig.add_subplot(111)
wdth = 0.20
ind = np.arange(a.size) 
mon_ticks =('Jan','Feb','Mar','Apr','May','Jun','Jul', 'Aug', 'Sep', 'Oct',
'Nov','Dec')
ax.bar(ind, a, wdth, color='0.8')
ax.set_xticks(ind)
ax.set_xticklabels(mon_ticks)
pyplot.show() 
Then pressing apply removes the ticks and tick label setting.

Hopefully this is adressed in the bug report you mention.  Thanks.
-- 
View this message in context: 
http://old.nabble.com/Qt4Agg-backend---edit-curves-and-axis-parameters-tp29754925p29764881.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread Benjamin Root
On Sun, Sep 19, 2010 at 5:23 PM, bevan j  wrote:

>selindex = value.pop(0)
> AttributeError: 'tuple' object has no attribute 'pop'
>

Didn't we just have a bug report/fix for this one?

Ben Root
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users