Skip to main content

Questions tagged [plots.jl]

Plotting interface and wrapper for several julia plotting packages

0 votes
0 answers
36 views

xlim DateTime doesn't show properly with Plots.jl

How do I set xlims on a Plots.jl plot of DateTime value? plot(df.datetime, pwr, xlims=(df.datetime[1],df.datetime[end]), ticks=:native) (first(df.datetime), last(df.datetime)) = (DateTime("2024-...
BAR's user avatar
  • 16.7k
0 votes
0 answers
18 views

how to show datetime tooltips with plots.jl

How do I get a DateTime tooltip to show on hovering of a plotted series using Plots.jl Currently with: plot(df.datetime, pwr) I get some float for x axis in hover tooltip.
BAR's user avatar
  • 16.7k
1 vote
0 answers
37 views

How to plot two X axis using Plots.jl

I want to plot a datetime axis and an integer value X axis using Plots.jl. plot(1:length(df.datetime), df.closes) plot!(p, df.datetime, zeros(length(df.datetime)), ticks=:native)
BAR's user avatar
  • 16.7k
0 votes
1 answer
61 views

Positioning legend when using multiple y-axes without breaking them apart

In Julia, using Plots, I want to plot two series using two different y-axes and one x-axis (using twinx()) and one legend centered below. The issue is that adding the legend shifts one of the y-axes ...
Mullvadsungen's user avatar
0 votes
0 answers
43 views

Improving Scatter Plot Aesthetics in Julia

I have the following code that generates the following image. res = model(Float32.(rand(hparams.noise_model, 1000))) res = Float32.(rand(hparams.noise_model, 1000)) scatter!(res[1, :], res[2, :]; ...
Jose Manuel de Frutos's user avatar
0 votes
1 answer
52 views

Access the plot object by Seaborn to put in Plots.plot as a subplot

Julia v1.9.2 Plots v1.38.0 Seaborn v1.1.1 I am trying to combine a heatmap (sbplot) from Seaborn and a regular Plots.plot (hist) as below, but am getting ERROR: MethodError: no method matching ...
Jen-Feng Hsu's user avatar
0 votes
1 answer
49 views

How to suppress svg output by IJulia in Jupyter notebooks

I use julia and Plots.jl in a jupyter notebook to create large scatter plots with up to 10^7 items. By default I get svg output, which makes Safari really sluggish. It also causes huge bloat in the ....
ck_'s user avatar
  • 3
0 votes
1 answer
71 views

How to plot in Julia over the surface of a sphere?

I have a function let's say f(\theta, \phi), that associate to each point of a sphere a value between 0 and 1, now I want my plot to show a sphere, and then the values of this function over the ...
nicco's user avatar
  • 1
1 vote
1 answer
161 views

Is it possible to add a subtitle by Plots.jl?

Consider the following plot: I want to put the "Analysed data range: ... 2020-01-01" as a subtitle with a different attribute, i.e., a smaller font. Is it possible? As of now, I have used ...
Shayan's user avatar
  • 5,947
0 votes
1 answer
199 views

How to keep all the subplots have the same Y axis range in julia?

I want a grouped plot that shows the distributions of events according to the hour (0 - 23 hour). I did not find an elegant way to do it, so I just used the most inefficient way to plot it. Now it ...
Chao's user avatar
  • 49
1 vote
1 answer
450 views

Change which font package Plots.jl is using for latex strings?

I am trying to make a plot with the math symbol: in the ylabel, which appears in latex as "\mathcal{I}", but this specific symbol cannot be made in Plots.jl. When entering "\mathcal{I}&...
Derick Diana's user avatar
0 votes
1 answer
287 views

How to plot a vector field using Plots.jl and function with DynamicalSystems.jl signature

I am trying to convert the python code for a tutorial on Numerical bifurcation diagrams and bistable systems to Julia; however, I am struggling to make a vector field/quiver/streamplot using Julia. ...
Jared Frazier's user avatar
0 votes
1 answer
118 views

How to change bar plot orientation in Plots.jl

When I try this: using Plots bar(["a", "b", "c"], [5, 9, 7]; legend=false, orientation=:h) I get this (not desired result as you can see): How to properly change the ...
psych0groov3's user avatar
0 votes
0 answers
251 views

Why does my julia plot pane show nothing in VS Code?

I both using Julia 1.6 and Julia 1.9. both can't plot anything, or sometimes give a shift shrinkle plots. Any ideas?
user22418091's user avatar
0 votes
0 answers
45 views

How to eliminate the horizontal line when a range is set for a histogram in Julia Plots

I am using Julia plots to construct a histogram. A pseudo code is given: data = some data b_range = range(0, 1, length=10) histogram!(data, bins=b_range, normalize=:probability) But I have a ...
PokeLu's user avatar
  • 827

15 30 50 per page
1
2 3 4 5
15