Bug in latex with \dots

Howdy,

the attached screenshot shows the output in matplotlib of:

In [18]: plot([1,2])
Out[18]: [<matplotlib.lines.Line2D object at 0x2c4e4d0>]

In [19]: title(r'$a+b+\dots+\dot{s}+\ldots$')
Out[19]: <matplotlib.text.Text object at 0x2c3b090>

along with the PostScript that Latex produces for the same equation.
There are two bugs, I think:

- \dots --> \dot{s} by matplotlib
- \ldots rendered by MPL centered vertically, while in latex those are
'lower' dots.

Should I open an SF ticket for this, or is it a quick fix?

Cheers,

f

latex_bug.png

There was both a parser bug (where accents were taking precedence over symbols), and a mapping bug (where ldots was mapped to the wrong Unicode code point). Both of these should now be fixed on the branch and trunk. Let me know if you see any further problems.

Mike

Fernando Perez wrote:

···

Howdy,

the attached screenshot shows the output in matplotlib of:

In [18]: plot([1,2])
Out[18]: [<matplotlib.lines.Line2D object at 0x2c4e4d0>]

In [19]: title(r'$a+b+\dots+\dot{s}+\ldots$')
Out[19]: <matplotlib.text.Text object at 0x2c3b090>

along with the PostScript that Latex produces for the same equation.
There are two bugs, I think:

- \dots --> \dot{s} by matplotlib
- \ldots rendered by MPL centered vertically, while in latex those are
'lower' dots.

Should I open an SF ticket for this, or is it a quick fix?

Cheers,

f
  
------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
------------------------------------------------------------------------

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Hi Michael,

[Cc'ing nipy-dev, where we ran into the problem. Docs should look
fine now, if you rebuild mpl]

There was both a parser bug (where accents were taking precedence over
symbols), and a mapping bug (where ldots was mapped to the wrong Unicode
code point). Both of these should now be fixed on the branch and trunk.
Let me know if you see any further problems.

Many thanks, it all looks good now.

Cheers,

f

···

On Wed, Feb 4, 2009 at 7:42 AM, Michael Droettboom <mdroe@...31...> wrote:

Mike

Fernando Perez wrote:

Howdy,

the attached screenshot shows the output in matplotlib of:

In [18]: plot([1,2])
Out[18]: [<matplotlib.lines.Line2D object at 0x2c4e4d0>]

In [19]: title(r'$a+b+\dots+\dot{s}+\ldots$')
Out[19]: <matplotlib.text.Text object at 0x2c3b090>

along with the PostScript that Latex produces for the same equation.
There are two bugs, I think:

- \dots --> \dot{s} by matplotlib
- \ldots rendered by MPL centered vertically, while in latex those are
'lower' dots.

Should I open an SF ticket for this, or is it a quick fix?

Cheers,

f