redrum
1
Hi,
I have a few questions about the loglog plot :
1- Is there a way to a have axis format with real numbers rather than
numbers with exponent ?
2- I would like to have a grid not only for 10^2, 10^3, 10^4, 10^5 ... but
also for the minor axis ticks. is it possible ?
3- I use loglog to plot parallel lines. How can I have the function label
directly displaid next to the plotted straight lines ?
Thanks for your tips.
···
--
View this message in context: http://www.nabble.com/loglog-plot-tp25448633p25448633.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Hi,
I have a few questions about the loglog plot :
1- Is there a way to a have axis format with real numbers rather than
numbers with exponent ?
import matplotlib.pyplot as plt
ax1 = plt.gca()
ax1.yaxis.set_major_formatter(ticker.FormatStrFormatter(“%.2f”))
You can check formatting options from http://docs.python.org/library/stdtypes.html#string-formatting-operations
2- I would like to have a grid not only for 10^2, 10^3, 10^4, 10^5 … but
also for the minor axis ticks. is it possible ?
You can use plt.yticks() to get new ticks as well as grids. Do you know how to make ticklabels like 5x10^2 etc…? This I couldn’t figure yet.
3- I use loglog to plot parallel lines. How can I have the function label
directly displaid next to the plotted straight lines ?
Thanks for your tips.
plt.text and some fine-tuning?
···
On Tue, Sep 15, 2009 at 1:24 AM, redrum <jvander59@…2785…> wrote:
–
Gökhan
redrum
3
Thanks Gökhan. It helped.
···
--
View this message in context: http://www.nabble.com/loglog-plot-tp25448633p25729540.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
You are welcome. My response to your 2nd question is still unknown, also I have another question. Anyone knows how to achieve that?
Thanks.
2- I would like to have a grid not only for 10^2, 10^3, 10^4, 10^5 … but
also for the minor axis ticks. is it possible ?
You
can use plt.yticks() to get new ticks as well as grids. Do you know how
to make ticklabels like 5x10^2 etc…? This I couldn’t figure yet.
···
On Wed, Sep 16, 2009 at 2:25 PM, Gökhan Sever <gokhansever@…287…> wrote:
On Tue, Sep 15, 2009 at 1:24 AM, redrum <jvander59@…32…> wrote:
Hi,
I have a few questions about the loglog plot :
1- Is there a way to a have axis format with real numbers rather than
numbers with exponent ?
import matplotlib.pyplot as plt
ax1 = plt.gca()
ax1.yaxis.set_major_formatter(ticker.FormatStrFormatter(“%.2f”))
You can check formatting options from http://docs.python.org/library/stdtypes.html#string-formatting-operations
2- I would like to have a grid not only for 10^2, 10^3, 10^4, 10^5 … but
also for the minor axis ticks. is it possible ?
You can use plt.yticks() to get new ticks as well as grids. Do you know how to make ticklabels like 5x10^2 etc…? This I couldn’t figure yet.
3- I use loglog to plot parallel lines. How can I have the function label
directly displaid next to the plotted straight lines ?
Thanks for your tips.
plt.text and some fine-tuning?
–
Gökhan
–
Gökhan