Can we use the markers as alternatives for linestyles?
Consider the following in sage:

Suppose I have defined f(x) for a range already, say by the following:

x = np.arange(0,1,0.001)

import matplotlib.pyplot as plt

plt.plot(x,f(x), color='magenta', linestyle='--', linewidth=4,
label="$f(x)$")

I want to know the equivalent syntax for '++' marker for the same plot of
f(x) against (x).

On Thu, Sep 13, 2012 at 12:07 AM, Jason Grout
<jason-s...@creativetrax.com>wrote:

> On 9/12/12 2:11 PM, Goutam Paul wrote:
>
>> It seems that there are only five line-styles:
>>
>> "-" (solid) – default
>> "--" (dashed)
>> "-." (dash dot)
>> ":" (dotted)
>> "None" or " " or "" (nothing)
>>
>> What if I want to have more linestyles? Say, ++, **, xx, ~~, etc.
>> Is it possible to have user-defined linestyles? How?
>>
>
> Those styles are hardcoded in matplotlib: http://matplotlib.org/api/**
> artist_api.html?highlight=**linestyle#matplotlib.lines.**
> Line2D.set_linestyle<http://matplotlib.org/api/artist_api.html?highlight=linestyle#matplotlib.lines.Line2D.set_linestyle>
>
> I'm not sure if there is a way to specify a custom dash pattern (like
> http://reference.wolfram.com/**mathematica/ref/Dashing.html<http://reference.wolfram.com/mathematica/ref/Dashing.html>,
> for example).  That would be a good question for the matplotlib mailing
> list: 
> https://lists.sourceforge.net/**lists/listinfo/matplotlib-**users<https://lists.sourceforge.net/lists/listinfo/matplotlib-users>
>
> Thanks,
>
> Jason
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to