Changing label fontsize in Plots.jl

1,532 views
Skip to first unread message

Nitin Arora

unread,
Oct 31, 2016, 5:48:40 PM10/31/16
to julia-users
Hi,
 
Does anyone know how to change fontsize for xlabel, ylabel and axis tick-labels in Plots.jl ? I am using the pgfplots backend.

I dont see any examples on the Plots.jl demonstrating that. 

Documentation I looked up: https://juliaplots.github.io/

thanks,
Nitin

Nitin Arora

unread,
Oct 31, 2016, 5:58:29 PM10/31/16
to julia-users
I did try using the "guidefont" and "tickfont" commands but they seem to make no difference when implemented as below:

scatter(Sol_U,:tof,:vinf,xlabel="Time (years)", ylabel="Arrival V(km/s)", marker = (:c, 2,stroke(0)),xlims = (6,12),tickfont=font(28),guidefont=font(28))

where Sol_U is a dataframe.

I am using plots 0.9.4+ (master) and my Julia version is 0.5.1-pre+2

thanks again !

Nitin Arora

unread,
Oct 31, 2016, 6:02:02 PM10/31/16
to julia-users
One more thing I found is that it works if I use pyplot as the backend so maybe its a pgfplots issue ?


On Monday, October 31, 2016 at 2:48:40 PM UTC-7, Nitin Arora wrote:

Nitin Arora

unread,
Oct 31, 2016, 6:05:30 PM10/31/16
to julia-users
I opened an issue at Plots.jl github as this command is working with pyplots but not pgfplots backend.

Chris Rackauckas

unread,
Oct 31, 2016, 11:09:00 PM10/31/16
to julia-users
Wonderful to see the learning process in action haha. For future reference, to see which commands are available in which packages, you can check the supported attributes page of the documentation.
Reply all
Reply to author
Forward
0 new messages