On Mon, Jul 26, 2010 at 9:49 AM, Benjamin Root <ben.r...@ou.edu> wrote:
> On Sat, Jul 24, 2010 at 1:51 PM, Josh Lawrence
> <josh.k.lawre...@gmail.com>wrote:
>
>> Hello,
>>
>> I looked on your website for the different line styles. In the
>> documentation for matplotlib.lines.line2D.set_linestyle, the dashed
>> linestyle is listed as '-' and not '--'. It it my understanding that
>> dashed should be '--'. If I'm incorrect, sorry for the noise.
>>
>> Cheers,
>>
>> --
>> Josh Lawrence
>> Ph.D. Student
>> Clemson University
>>
>>
>>
> Looks like the formatter for the online documentation took the double-dash
> to mean a "long line", much like how LaTeX does. Anybody know how to make
> the double-dash appear as two distinct dashes?
>
>
> http://matplotlib.sourceforge.net/api/artist_api.html?highlight=set_linestyle#matplotlib.lines.Line2D.set_linestyle
>
> Ben Root
>
>
After some reading of sphinx documentation, it appears to be a bug with
sphinx (or actually, "smartypants") because it should not be doing this sort
of interpretation within a docstring. Anyway, supposedly the workaround is
to put double backticks around the part that needs to be treated literally:
``'--'``. I tried this out and built the docs locally and it works... sort
of. The text that is surrounded by double backticks are getting a different
background color. This doesn't look great to me. Maybe someone else has a
thought?
Ben Root
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users