[Chart] Equal scale on both axes

Triwanto Simanjuntak simanjuntak.triwanto at gmail.com
Tue Oct 22 15:23:05 BST 2013


I just subscribed this mailing list, so hello to all of you.

Previously I asked the following question,

[I'm a newbiee Haskell user and after have been toying with available
plotting packages, I found that haskell-chart is the most reliable. So
thanks for all the hard work!

I have a small problem. Making the axes to be in logarithmic scale was
easily done but I still can't manage to make both axes have equal scale.
I'd be very happy to hear any suggestion on how to achieve it or where to
look for solution.]


and  then Tim replied,

[By both axes, do you mean both Y axes, or the X and Y axes?]


To clarify my question:
I meant the latter one, X and Y axes of  a single plot to have equal scale
(aspect ratio), [as for comparison for python-matplotlib, see
http://goo.gl/gP7Sr4]

Does simply invoking the chart's size to have equal lengths (square shape),

e.g. renderableToPDFFile chartFoo 320 320 "chartFoo.pdf"
the resulted chart will have equal aspect ratio?
or the declared chart size is basically the size of the canvas
?

Thanks,


Triwanto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/chart/attachments/20131022/7ecbb40b/attachment.htm>


More information about the Chart mailing list