MQMQ: How to adjust the size and scale of the x-y axis of the graph.Thanks.

Dear all,

Could you guys share your experience on:
How to adjust the size and scale of the x-y axis of the plot (e.g. how to
resize the "0 1 2" on x axis ), Thanks?
And special commands in matplotlib?

Thank you so much in advanced.
MQMQ

···

--
View this message in context: http://old.nabble.com/MQMQ%3A-How-to-adjust-the-size-and-scale-of-the-x-y-axis-of-the-graph.Thanks.-tp33177496p33177496.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

You can change the font sizes for most of the plotting elements with the pyplot variable pyplot.rcParams.
Change the range of the XY axes by calling
pypolt.xlim(0,360)
pyplot.ylim(-0.01,4.05)
-or-
pyplot.axis(0,360,-0.01,4.05)
and you can adjust the ticmark values by
pyplot.xticks(range(360))

Also look into the pyplot.setp method.

-Ethan

···

On 1/20/2012 5:31 PM, MQMQ wrote:

Dear all,

Could you guys share your experience on:
How to adjust the size and scale of the x-y axis of the plot (e.g. how to
resize the "0 1 2" on x axis ), Thanks?
And special commands in matplotlib?

Thank you so much in advanced.
MQMQ

Thank you so much, I will follow your advice.:slight_smile:

MQ

MQMQ wrote:

···

Dear all,

Could you guys share your experience on:
How to adjust the size and scale of the x-y axis of the plot (e.g. how to
resize the "0 1 2" on x axis ), Thanks?
And special commands in matplotlib?

Thank you so much in advanced.
MQMQ

--
View this message in context: http://old.nabble.com/MQMQ%3A-How-to-adjust-the-size-and-scale-of-the-x-y-axis-of-the-graph.Thanks.-tp33177496p33189796.html
Sent from the matplotlib - users mailing list archive at Nabble.com.