[Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-21 Thread JonBL
I have a line plot where the x-axis values are numbers, with displayed tick mark values of 0, 100, 200 ... 500 - a total of 6 tick marks. These values represent the number of days since a certain date. I have a function which converts a number such as 100, to date string '23-Jun-11', which I want

Re: [Matplotlib-users] Fwd: Possible to change MPL color scheme?

2012-07-21 Thread klo uo
Ah all right, thanks for the tips :) I somehow missed that setting while browsing matplotlibrc Cheers On Sat, Jul 21, 2012 at 9:33 PM, Felix Patzelt wrote: > You want this? > > > > import matplotlib as mpl > mpl.rcParams['axes.color_cycle'] = ['#FF', '#00FF00', '#FF', > '#00',

Re: [Matplotlib-users] Fwd: Possible to change MPL color scheme?

2012-07-21 Thread Felix Patzelt
You want this? import matplotlib as mpl mpl.rcParams['axes.color_cycle'] = ['#FF', '#00FF00', '#FF', '#00', 'FF00FF', '00', '00'] # test it from pylab import * import matplotlib.cm as cm x = linspace(0, 2*pi, num=100, endpoint=True) for i in range(1, 10): plot(x,

[Matplotlib-users] Fwd: Possible to change MPL color scheme?

2012-07-21 Thread klo uo
On Sat, Jul 21, 2012 at 7:37 PM, Felix Patzelt wrote: > Have you ever been in a talk where someone uses 100% green on a slide? The > result is usually that no one can see what is shown unless it is a really > large green area. No, but I would have expected in that case appropriate bg. I've seen

Re: [Matplotlib-users] Additional line styles - comparison excel chart

2012-07-21 Thread Benjamin Jonen
Hey guys, thanks for your answers. Nicolas, your showcase seems to be exactly what I'm after. To make this a little more user-friendly it would be nice to create ones own line style from this so that it can be easily incorporated in the plotting command, i.e. ax.plot( , linestyle=myFancyLine)

Re: [Matplotlib-users] Possible to change MPL color scheme?

2012-07-21 Thread Felix Patzelt
Have you ever been in a talk where someone uses 100% green on a slide? The result is usually that no one can see what is shown unless it is a really large green area. Green should be dark and not (0, 255, 0)! The same applies to cyan and yellow. Were the colors like you want them, they would be

[Matplotlib-users] Possible to change MPL color scheme?

2012-07-21 Thread klo uo
Hi, I read previous mail about "colormaps" which reminded me to a question I had about MPL colors. Colors in MPL plots are dark, and pale, and not is some specific color theme but it's just pale dark. I thought that usually people make plots brighter (as more attractive ;) ) If you can, have a lo

Re: [Matplotlib-users] wrapping y axis tick labels?

2012-07-21 Thread Mark Lawrence
On 21/07/2012 05:15, Benjamin Root wrote: > On Fri, Jul 20, 2012 at 10:55 PM, C M wrote: > >> How possible would it be to wrap y axis tick labels after a certain >> text length? I have a horizontal bar plot where some bars' labels are >> too long and therefore cut off. I can scrunch the width of