Plotting interface and wrapper for several julia plotting packages
Questions tagged [plots.jl]
205 questions
3
votes
0 answers
Julia: using @manipulate creates plot but doesn't update after saving notebook and reopening
I am totally stumped by the following:
I create a plot in Julia 1.6.3 with the current versions of Interact.jl and WebIO.jl and use the @manipulate macro to create a plot with an options box and a slider. The plots works and can be manipulated…

Paul Nakroshis
- 31
- 3
3
votes
1 answer
Is there any ax.view_init(elev, azim) equivalent function in plots.jl?
I am using Plots for visualizing 3d-plots with Julia, and I am trying to change camera angle of my plot. In matplotlib in Python, I know that I can use ax.view_init(elev, azim) to change the camera angle, but on Plot.jl, I could not find solution to…

AfterFray
- 1,751
- 3
- 17
- 22
3
votes
1 answer
Plot line between 2 points in Julia
Suppose we have drawn 10 points and we want to draw a simple line between each one of them.
begin
x,y = rand(1:10, 10), rand(1:10, 10)
scatter(x,y)
#Some drawing line code
end
How can we do this in Julia using Plots.jl package?, I'd…

Eduardo Uriegas
- 77
- 7
3
votes
3 answers
Compute and plot central credible and highest posterior density intervals for distributions in Distributions.jl
I would like to (i) compute and (ii) plot the central credible interval and the highest posterior density intervals for a distribution in the Distributions.jl library.
Ideally, one can write their own function to compute CI and HPD and then use…

Pietro
- 415
- 6
- 16
3
votes
1 answer
Plotting images from array containing datatype UInt8
I have a bunch of images (of cats) and want to plot one of them. The values image are in the format UInt8 and contain 3 bands. When I try to plot using plots I get the following error, ERROR: StackOverflowError.
Using Plots
# Get data
train_data_x…

imantha
- 2,676
- 4
- 23
- 46
3
votes
3 answers
How to give multiple plots a shared title in Plots.jl
I'm trying to plot several related plots in a grid and I'd like to give a shared title. However, when I use plot(plot1, plot2, title="my title") Plots.jl titles each separate plot with that title. Is there a way to fix this?
I tested the code below…

Jonas
- 1,401
- 9
- 25
3
votes
1 answer
Plot an array of plots as subplots with Plots.jl
Continuation of this thread: How to create an arbitrary number of subplots in Julia Plots
When I tried
using Plots
plot_array = Any[]
for i in 1:5
push!(plot_array, plot(rand(10))) # make a plot and add it to the…

Jen-Feng Hsu
- 161
- 11
3
votes
1 answer
Failed to precompile Plots.jl in Julia
I was starting Julia code in Jupyterlab by commanding using so that I can use Julia packages as usual. It had been working well until this morning. Today I got this error which I do have no clue how to deal with. Please check the attached image. Any…

Judy
- 43
- 1
- 4
3
votes
1 answer
Plotly + Julia + Latex
I would like to use latex with the Plotly backend. Look in this example: Even the x-axis and y-axis log scales are not formatted properly! Do you know how to do that?
Best,
v.
using Plots, LaTeXStrings
plotlyjs()
x = 10 .^…

varantir
- 6,624
- 6
- 36
- 57
3
votes
1 answer
plot window showing up when run from terminal in Plots.jl
I'm using Plots.jl with the default backend to plot an image and save the figure.
using Plots: plot, savefig
plot(rangex,rangey,some_image,xticks,yticks,...);
savefig("name.jpg");
this works perfectly fine with Juno IDE. But my final code is…

atachsin
- 173
- 10
3
votes
1 answer
How to rotate a bar graph in Plots.jl?
Executing, in the REPL, after using Plots, bar(["One","Two","Three"], [1,2,3]) works. It produces the following:
However, I would like to have the x axis as the y, and the y as x. I just want that same data represented with horizontal bars, y'know?…

OctarineSorcerer
- 445
- 3
- 10
3
votes
1 answer
How to rotate the font in Plots.jl
How do you rotate the font for xlabel or ylabel in the Julia plotting package Plots.jl?
fo = font(10, "Courier")
fo.rotation = 90
plot(randn(10), xtickfont=fo) # Does nothing

Fredrik Bagge
- 1,351
- 8
- 20
3
votes
4 answers
Julia plotting issues: label overlap and LaTeXStings expansion
I am having two mutually exclusive issues with my sample plot below.
The y-axis label and y-tick labels are on top of each other. I have
not been able to find a way to shift either. I would like
the size of the plot to expand to accommodate the…

Nathan Boyer
- 1,412
- 1
- 6
- 20
3
votes
3 answers
Julia - Displaying several plots in the same plot (not subplot)
Plotting several series in a same plot display is possible and also several subplots in a display. But I want several plots which can be completely different things (not necessarily a series or graph of a map) to be displayed exactly in one frame.…

AmirHosein Sadeghimanesh
- 448
- 6
- 21
3
votes
1 answer
Animating subplots using Plots.jl efficiently
I am trying to create an animation with three subplots (one surface, two heatmaps) in Julia using Plots.jl with the GR backend. By far the slowest part of my code is the generation of these plots, so I am trying to find the most efficient way to do…

James C
- 143
- 7