Dear  all, 

i am using PyPlot for a simple sine plot and i am trying to increase the 
fontsize of x(y) *tick* labels (*not* x(y) *axis* labes). 

The following code... 

using PyPlot

# generate data:
x = 0:0.01:30
sin_noise(arr) = sin(arr) + rand(length(arr))


# Create a figure
fig = figure("pyplot_customtime",figsize=(18,12)) 
ax = axes()
plot(x,sin_noise(x),linestyle="-",marker="None",color="blue", label=L
"$y=\sin(x)+x_{random}$")
ax[:legend](loc="lower left",fontsize=30)
ax[:set_xlabel]("X Axis", fontsize=38)
ax[:set_ylabel](L"$y(x)$", fontsize=38)
axis("tight")
grid("on")


# Update the figure and save to file:
fig[:canvas][:draw]() 
PyPlot.tight_layout()
savefig("plot_signal_filter.pdf")
println("Done.")

..produces the plot below.  The fonts on x(y) axis are much too small and i 
want to have control over how big the x(y)tick labels 
([0,5,10,15,20,25,30]) are. Incredibly enough, I haven't been able to find 
a straightforward answer online. Can anyone please help?

Best regards,
M.

<https://lh3.googleusercontent.com/-tNq_lURop3g/V9KyHVzaMQI/AAAAAAAAKLA/ThjpQWaj2CspSupA9YPQEMYvuXAFE5v3ACLcB/s1600/plot_signal_filter.png>

Reply via email to