Re: [Matplotlib-users] automatically choose line markers/styles?
Just an idea: Maybe you could also auto cycle between dash types if only the colour and not the dash type is specified in a plot command. The gnuplot default would be one model, or the predefined patterns in CorelDraw or Inkscape etc. Personally I don't see this as a high priority though. Gary R. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] automatically choose line markers/styles?
Alan G Isaac wrote: On Thu, 14 Feb 2008, Neal Becker apparently wrote: Can I get nice default line styles and markers, automatically set up with matching legend? Automatically chosen? I don't want to have to go through and manually choose each marker and line style. Well, you have to ask for a legend, but everything else default looks good to me. What is an example where you do not like the default behavior? Are you trying to make a bunch of figures look alike? IIUC, in order to have each line with distinct line style, I have to explicitly set the line style. I want pylab to just choose them, just as it does for colors. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] automatically choose line markers/styles?
On Tue, 19 Feb 2008, Neal Becker apparently wrote: IIUC, in order to have each line with distinct line style, I have to explicitly set the line style. I want pylab to just choose them, just as it does for colors. Well, pylab does choose: it varies color and not the dash pattern in order to have distinct lines. I think what you are wanting is something like the following: have pylab/pyplot cycle automatically through a set of preset Line2D property combinations, when an axes plots multiple lines. I think the answer is: this is not available in the form you want. (Indeed, it is hard for me to imagine agreement on nice choices for multiple properties.) Of course you can do something like this:: from itertools import cycle mystyles = ['r+-', 'b.--', 'go-.'] #etc ax1styles = cycle( mystyles ) for x,y in data: ax1.plot(x, y, ax1styles.next()) Cheers, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] automatically choose line markers/styles?
On Feb 19, 2008 9:13 AM, Alan G Isaac [EMAIL PROTECTED] wrote: Of course you can do something like this:: from itertools import cycle mystyles = ['r+-', 'b.--', 'go-.'] #etc ax1styles = cycle( mystyles ) You can also cycle through the list matplotlib uses import matplotlib.lines as lines # filled markers fmarkers = lines.Line2D.filled_markers # all markers markers = lines.Line2D.markers.keys() but this is not ideal, since lines.Line2D.markers is a dictionary and the keys will come back un-ordered. Noone has every asked for auto-marker cycling before, but it might be a good idea and wouldn't be too hard to add. JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] automatically choose line markers/styles?
On Thu, 14 Feb 2008, Neal Becker apparently wrote: Can I get nice default line styles and markers, automatically set up with matching legend? Automatically chosen? I don't want to have to go through and manually choose each marker and line style. Well, you have to ask for a legend, but everything else default looks good to me. What is an example where you do not like the default behavior? Are you trying to make a bunch of figures look alike? Cheers, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] automatically choose line markers/styles?
Can matplotlib automatically choose line styles and/or markers for a group of plots? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] automatically choose line markers/styles?
Alan G Isaac wrote: On Thu, 14 Feb 2008, Neal Becker apparently wrote: Can matplotlib automatically choose line styles and/or markers for a group of plots? http://matplotlib.sourceforge.net/matplotlibrc Although I prefer to pass in a dict of keyword arguments. Not sure what you're telling me here. I'm thinking: I can get nice default grid with grid() I can get nice default legend with legend() Can I get nice default line styles and markers, automatically set up with matching legend? Automatically chosen? I don't want to have to go through and manually choose each marker and line style. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users