Questions tagged [plots.jl]

Plotting interface and wrapper for several julia plotting packages

Useful links

205 questions
1
vote
0 answers

Equivalent of matplotlib's fig.subplots_adjust(hspace=0) in Julia/Plots

I am trying to draw a graph using Plots package in Julia and save it to SVG. While plotting two or more subplots one below the other is trivial in Plots (with the help of Layouts), I found it extremely difficult to make the subplots stick to each…
Marcus
  • 1,685
  • 1
  • 18
  • 33
1
vote
1 answer

Annotate outside of plot

How can I annotate outside of a plot. Here is an example: using Plots, LaTeXStrings gr() x = LinRange(0.0,2π, 100) y= sin.(x) plt = plot(x, y, label=["aPlot"], legend= :outertopright, legend_column=1 …
nop nop
  • 83
  • 6
1
vote
2 answers

Julia Plots: cmap does not match clim

I am trying to draw a surface plot in Julia. What I want is for the color of the surface to match the vertical-axis value, and for this to range from deep red (negative) to deep blue (positive), with white when vertical (pi - c) = 0. I am able to…
Aaron Wolf
  • 337
  • 3
  • 13
1
vote
1 answer

How to have a customized legend in the x axis when using groupedbar by StatsPlots

As mentioned, I wanted to plot a groupedbar using StatsPlots in Julia. Here is my code: legends = repeat(["myopic baseline", "vfa", "lvfa", "nnvfa", "nnvfa with attention"], outer=2) training_time_per_step = [0., 9.817792895793914,…
PokeLu
  • 767
  • 8
  • 17
1
vote
1 answer

How to pass data to Plots OHLC function in Julia

I'm having an issue figuring out how to get data from a dataframe in this format: These are the types that get printed from each column: DataType[Any, Any, Any, Any, Any] This is the error i'm getting and already tried converting the types without…
Canichim
  • 21
  • 4
1
vote
1 answer

Julia plots log axis: change powers (-1, 0, 1) of 10 (only) by: (0.1, 1, 10) labels

I hate those (semi/log-)log plots with: 10^⁻1, 10⁰ and 10¹ labels. A good way to change only these by, simply: 0.1, 1, and 10 please? plot(x, y, yscale=:log10, label="", yformatter = yi -> yi==0.1 ? "0.1" : yi==1 ? "1" : yi==10 ? "10" : yi) does…
1
vote
1 answer

Julia doesn't precompile Plots

I'm using Julia 1.8 on my Mac with VS code. However I've been having a problem with the package Plots for many days. Basically if I download the package with: import Pkg using Pkg Pkg.add("Plots") I get the following output: pastebin link So, as…
1
vote
1 answer

Modifying label and tick on color bar of Plots.jl plot

I have a scatter plot generated using Plots.jl in Julia via Plots.scatter(x, y, marker_z = z). This results in a scatter plot of x and y, where points are colored according to the corresponding values in z. There is a vertical color bar to the right…
Sam Polk
  • 73
  • 4
1
vote
1 answer

Save Plot figure in Julia

I am new to Julia and am using the Plots.jl [GR] library to create plots. I am trying to save my plot as a PNG to display on my GTK GUI. I am able to save the plot as an html file and text file but not .png using the savefig function…
aight101
  • 63
  • 6
1
vote
0 answers

Speeding up Lyapunov Exponent Script

Im writing a script to calculate the Lyapunov exponent of a particular system with varying parameter. The code is ungodly slow and it hangs every so often when running on Jupyter Notebook. Any suggestions? using DynamicalSystems, Plots function…
Stev L
  • 11
  • 1
1
vote
1 answer

Can't compile Plots

I installed a new version of Julia, version 1.7. And while trying to install Plots, I had the following error. I did ] add Plots and ] build Plots without any errors. julia> using Plots [ Info: Precompiling Plots…
JKHA
  • 1,800
  • 11
  • 28
1
vote
1 answer

Using Julia and dataframes plot the median of one columns based on bins from another column

my apologies if this is a simple question but I couldn't find a direct answer on the internet and I think it's a useful problem for others. I'm using Julia and DataFrame and I want to bin on column and then take the median of those bins and plot…
nboogerz
  • 31
  • 3
1
vote
1 answer

Size and Colour in Julia Scatter Plot

I want create a scatter plot. I have point size and colour in additional variables (vectors). x = Float64.(1:10) y = Float64.(1:10) c = Float64.(1:10) s = Float64.(1:10) scatter(x,y) I've been googling very long now and could not find the right…
Georgery
  • 7,643
  • 1
  • 19
  • 52
1
vote
1 answer

Vanilla julia 1.6.4 installation: Failed to precompile Plots

Vanilla julia-1.6.4 installation. Ubuntu 20 LTS Any ideas?
Simon B
  • 199
  • 1
  • 9
1
vote
1 answer

Plots.vline! function is not recognized in new Plots version

Has Plots changed something about vline(!)? Today in the newly installed machine I tried: begin pyplot() Plots.plot([57,89]) Plots.vline!([1.25]) end and got the error quoted at the bottom. The new Plots is v"1.20.0" while on the…
Jen-Feng Hsu
  • 161
  • 11