Changing label fontsize in Plots.jl

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing label fontsize in Plots.jl

Nitin Arora
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
Reply | Threaded
Open this post in threaded view
|

Re: Changing label fontsize in Plots.jl

Nitin Arora
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 !

On Monday, October 31, 2016 at 2:48:40 PM UTC-7, Nitin Arora wrote:
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: <a href="https://juliaplots.github.io/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;">https://juliaplots.github.io/

thanks,
Nitin
Reply | Threaded
Open this post in threaded view
|

Re: Changing label fontsize in Plots.jl

Nitin Arora
In reply to this post by Nitin Arora
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:
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: <a href="https://juliaplots.github.io/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;">https://juliaplots.github.io/

thanks,
Nitin
Reply | Threaded
Open this post in threaded view
|

Re: Changing label fontsize in Plots.jl

Nitin Arora
In reply to this post by Nitin Arora
I opened an issue at Plots.jl github as this command is working with pyplots but not pgfplots backend.

On Monday, October 31, 2016 at 2:58:29 PM UTC-7, Nitin Arora wrote:
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 !

On Monday, October 31, 2016 at 2:48:40 PM UTC-7, Nitin Arora wrote:
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: <a href="https://juliaplots.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;">https://juliaplots.github.io/

thanks,
Nitin
Reply | Threaded
Open this post in threaded view
|

Re: Changing label fontsize in Plots.jl

Chris Rackauckas
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.

On Monday, October 31, 2016 at 3:05:30 PM UTC-7, Nitin Arora wrote:
I opened an issue at Plots.jl github as this command is working with pyplots but not pgfplots backend.

On Monday, October 31, 2016 at 2:58:29 PM UTC-7, Nitin Arora wrote:
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 !

On Monday, October 31, 2016 at 2:48:40 PM UTC-7, Nitin Arora wrote:
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: <a href="https://juliaplots.github.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjuliaplots.github.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqsjNCTz37sH4F5TeTVhpshwkeOQ&#39;;return true;">https://juliaplots.github.io/

thanks,
Nitin