Plotting interface and wrapper for several julia plotting packages
Questions tagged [plots.jl]
205 questions
4
votes
0 answers
The legends is going outside of the plot. How to avoid it
Drawing using code below
p = scatter(; title = "a", titlefont=font(12),
xlabel = "message size",
xscale = :log10, xlims, xticks, ylabel = "time [sec]",
ylims, yscale = :log10, legend=:outertopright,
left_margin=15Plots.mm,…

Khalid Bin Huda
- 1,583
- 17
- 16
4
votes
2 answers
How to color a scatter plot of two vectors (x,y) according to a third vector (z)
I would like to color points (x,y) in a scatter plot according to the value of z (with the same index).

ortatrit
- 41
- 1
4
votes
1 answer
How to get better Plots.jl xaxis tick labels with Time data in Julia?
I would like to see [00:00:00, 02:00:00, 04:00:00, 06:00:00] or similar as the xtick labels. The pyplot and GR backends gave similar results. I am fine using any backend that supports both a left and right yaxis.
Default Plot
using DataFrames,…

Nathan Boyer
- 1,412
- 1
- 6
- 20
4
votes
1 answer
Plots.jl legend text color?
Simple but seemingly non-answered question:
Is it possible to customize the legend in Plots.jl so as to have the different
text labels in different text colors? With the GR backend.

henrikjames
- 43
- 4
4
votes
2 answers
How to plot spheres with Julia?
Simple Problem, I have a data set with x-,y-,z-coordinates and the volume of each sphere.
Should be enough data to plot these spheres? Isn't it?
I'm new to Julia and I actually have no clue how to do this.
Couldn't find any similar and helpful…

Tom
- 100
- 6
4
votes
1 answer
How to get plot attributes in Plots.jl
How can I access the attributes of a plot after creating it?
For example, I was hoping to get the y-axis limits from a plot. Something like this didn't work:
p1 = Plots.plot(rand(10))
get(p1,:ylim)
This errors:
MethodError: no method matching…

Alec
- 4,235
- 1
- 34
- 46
4
votes
1 answer
how to plot an image on a specific coordinates in the graph using Plots.jl
I am using Plots.jl with the plotly backend and I am wondering if it's possible to plot an image at specific coordinates. Say for example I have an image that I want to plot at (x = 1 , y = 1) and the size of the picture of 1. Is it possible to that…

Flying_Squirrel
- 89
- 6
4
votes
0 answers
Plots.jl "WARNING: No strict ticks found"
I frequently get the following warning message when using Plots.jl:
WARNING: No strict ticks found
What does this mean?
MWE: plot(x->1/x,0,1)

gTcV
- 2,446
- 1
- 15
- 32
4
votes
1 answer
Coloring markers in a scatter plot according to RGB values with Plots.jl
I have been looking for a way to color markers in a scatter plot without creating an entire new series for every point. Is there a way to color them individually with different RGB values for each?
a single color gradient (the solution to the…

Polimathos
- 41
- 2
4
votes
1 answer
How to create an arbitrary number of subplots in Julia Plots
I want to make a set of subplots from a multidimensional array using Breloff's Julia Plots. This plot function takes a varargs input and makes them into subplots, but I can't seem to feed my array in properly and am probably overlooking something…

ultradian
- 581
- 5
- 20
4
votes
1 answer
plotting a 2d function as surface in 3d space with `Plots.jl`
I have the following problem while plotting with Plots.jl. I like to plot the rosenbrock function
rosenbrock(x) = (1.0 - x[1])^2 + 100.0 * (x[2] - x[1]^2)^2
as surface, which expects a 2d Tuple{Float64,Float64} as input.
What I could come up with,…

swiesend
- 1,051
- 1
- 13
- 23
4
votes
2 answers
Histogram with log y axis in Julia Plots.jl
I have tried the following:
using Plots.jl; gr()
histogram(randn(1000),yaxis=(:log10))
and it produces the following error
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: At least one finite value must be provided to formatter.
in…

Ian Marshall
- 709
- 1
- 5
- 14
3
votes
1 answer
How to turn off interactivity/responsiveness for plotly backend in Plots.jl
What is the keyword to turn off the interactivity or responsiveness in the plotly backend for the Plots.jl package in Julia?
For reference, I am using Pluto and while the interactivity is great, I am doing some very dense scatter plots (>1000…

ITA
- 3,200
- 3
- 18
- 32
3
votes
2 answers
Julia Plot Pane
VSCode used to create plots from Plots.jl in Julia into a separate pane. For some reason it now plots in the same pane as the editor and covers the code making it difficult to tie the code and the graph together. What setting did I inadvertently…

Mike Sergeant
- 31
- 2
3
votes
1 answer
Multiple plots on the same figure julia
I am writing a Julia program which iteratively runs another function, and will give me two sets of results. I want to plot these results and right now what I am doing is to plot the results of each for loop separately which gives me about 20 plots…

newtothis
- 495
- 3
- 10