[Matplotlib-users] Tabstops render as squares
Jouni K. Seppänen
jks at iki.fi
Sun Nov 26 06:58:03 EST 2017
Joe <solarjoe at posteo.org> writes:
> I was trying to render a pdf document with some data
> aligned by tabstops.
I don't think there is any support for that kind of text layout.
The closest feature is probably pyplot.table:
https://matplotlib.org/api/_as_gen/matplotlib.pyplot.table.html
http://matplotlib.org/examples/pylab_examples/table_demo.html
Another possibility is to use a monospaced font and align with spaces
(possibly using str.expandtabs to generate the spaces):
https://stackoverflow.com/a/30111217/26575
--
Jouni K. Seppänen
http://www.iki.fi/jks
More information about the Matplotlib-users
mailing list