From: Benjamin R. <ben...@ou...> - 2010-07-26 20:03:02
|
On Mon, Jul 26, 2010 at 9:49 AM, Benjamin Root <ben...@ou...> wrote: > On Sat, Jul 24, 2010 at 1:51 PM, Josh Lawrence <jos...@gm...>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 |