Re: [Matplotlib-users] re move / delete arrow / annotate, how to?

2010-05-05 Thread KrishnaPribadi
Ryan May-3 wrote: You can accomplish it by: ax.texts.remove(arrow) I'd still like to know why this exception gets raised: NotImplementedError Traceback (most recent call last) /home/rmay/ipython console in module()

[Matplotlib-users] re move / delete arrow / annotate, how to?

2010-05-04 Thread KrishnaPribadi
Hi, I'm trying to remove or delete an annotate arrow but I'm unsuccessful. Can some please help? Thanks. I tried the [artist].remove() but that will not work with arrows or annotate objects... Here is some example code, please add in the code I need if you can: import numpy as np import

Re: [Matplotlib-users] Setting color of both major and minor gridlines?

2010-04-26 Thread KrishnaPribadi
Peter Buschman-2 wrote: I ended up finding a solution to this by using a FixedLocator and manually setting each of the tick positions for both major and minor grids without overlap. I'm not sure if this is the recommended way to do this, but hey, it worked ;-) for tick in

[Matplotlib-users] navigationtoolbar: 1. force location; 2. add select button(s) only

2010-04-16 Thread KrishnaPribadi
Hi, I'm trying to add some navigation tools to my mpl embedded in a wx app. I noticed the default navigation tools here: http://matplotlib.sourceforge.net/users/navigation_toolbar.html?highlight=matplotlib%20widgets

Re: [Matplotlib-users] Forcing full value on axis (Dave Simpson)

2010-04-15 Thread KrishnaPribadi
I just tried this method and it does work if you are using integers or whole numbers. However, I am working with time on my x axis. So when I zoom too close, floating point numbers are required... Is there any way to just turn off the exponent number in the right corner and force the x tick

Re: [Matplotlib-users] axvspan, multiple calls, how to change prop of 1 object instance

2010-04-12 Thread KrishnaPribadi
I figured it out on my own! Why I couldn't figure it out before... I don't know... Here is the code: myhighlights[1].set_facecolor('y') myhighlights[1].set_xy([[ 3.5 , 0. ],\ [ 3.5 , 1. ], [ 3.75, 1. ], [ 3.75, 0. ], [ 3.5 , 0. ]]) KrishnaPribadi wrote: Hi, I

Re: [Matplotlib-users] 2 lines, 2 diff colors, when converged, gets 3rd color...

2010-04-09 Thread KrishnaPribadi
Here my screen shot. Notice the red and green line merging then turning brown... -- View this message in context: http://old.nabble.com/2-lines%2C-2-diff-colors%2C-when-converged%2C-gets-3rd-color...-tp28182679p28190837.html Sent from the matplotlib - users mailing list archive at Nabble.com.

[Matplotlib-users] custom color cycle from cmap

2010-04-08 Thread KrishnaPribadi
Hi, I'm trying to plot a set of lines, 12 to be exact, and the default color cycle only supports 8 or 9 distinct colors. That said, I looked up the color maps and segmented it using 12 constant intervals with the hope of getting 12 distinct colors. The problem I'm running in to is that some of

Re: [Matplotlib-users] custom color cycle from cmap

2010-04-08 Thread KrishnaPribadi
Thanks Tony. That helps clean up the code. Now that I think about it more, I actaually had 2 questions. The first you answered well. The second question relates to my problem when using this method in that it produces line colors where some colors are too similar. In other words, there isn't

[Matplotlib-users] 2 lines, 2 diff colors, when converged, gets 3rd color...

2010-04-08 Thread KrishnaPribadi
I'm plotting 2 lines with 2 colors. The lines are binary so they are somewhat square. When the lines converge on a same value for a period, their colors combine and turn into a 3rd color Is there a way to force the plotting to not blend the 2 colors together? I just want the 2nd line to lay

Re: [Matplotlib-users] get/set current index of color cycle, how to

2010-03-11 Thread KrishnaPribadi
I figured it out, found answer on this site: http://old.nabble.com/Automatically-changing-line-colors-td893139.html#a949316 -- View this message in context: http://old.nabble.com/get-set-current-index-of-color-cycle%2C-how-to-tp27864297p27865867.html Sent from the matplotlib - users mailing