Questions tagged [julia-plots]

95 questions
2
votes
2 answers

Fill in Plots vspan saves as black

I create the plot I need in julia, but upon saving with savefig, the vspan fill is printed as black, although it is specified as very light red. This is what is show in my notebook and I am savign but when I save it as pdf, the red blocks become…
Jan Sila
  • 1,554
  • 3
  • 17
  • 36
2
votes
0 answers

Julia: Are there any alternative packages to RootsAndPoles.jl available?

I am looking for a Julia package that finds the poles and roots within a given domain of a given arbitrary complex function. Unfortunately, the on GitHub available package RootsAndPoles.jl v(2.0.0) by Piotr Kowalczyk seems to have a bug see my…
Bernd
  • 155
  • 10
2
votes
1 answer

How to plot or show multiple images in a row using julia?

I'm new to Julia and I used MNIST handwritten digit train data to get multiple images in matrix with size 28 x 28. Let's assume I store them in array img[i] with length n(n is dynamic). I want to show Images in one window such that every image has…
2
votes
2 answers

Add density curve to histogram with count y-axis in Julia

I would like to add a density curve to a histogram while keeping the y-axis with count values. The answer on this forum describes how to add a density curve to a histogram but with the probability on the y-axis. Here is the…
Quinten
  • 35,235
  • 5
  • 20
  • 53
2
votes
1 answer

How to make a good graph with this dataset in julia language?

I have got this dataset in julia: julia> import Downloads julia> using DLMReader, VegaLite, InMemoryDatasets julia> data=Downloads.download("https://raw.githubusercontent.com/akshdfyehd/salary/main/ds_salaries.csv"); julia>…
hahaha
  • 183
  • 5
2
votes
2 answers

How to determine which fonts are available and use them in Julia plots?

I need to modify which font is used for titles, labels, and annotations in a Julia plot. It needs to be Arial Bold or something reasonably similar. (Not my choice.) I try to change the font using what I find in posts and documentation like plot(…
2
votes
2 answers

Plots.jl: Change formating of logscale ticks to normal formatting

Consider the following plot using Plots pyplot() radix_range_xticks = -4:4 radix_range = LinRange(-4, 4, 100) xs = 2.0 .^ radix_range_xticks pf = 50.0 bw = 25.0 roofline(x, bw, pf) = min(bw*x, pf) ys = roofline.(xs, bw, pf) p = plot(xs, ys;…
loonatick
  • 648
  • 1
  • 7
  • 15
2
votes
1 answer

Creating animated plots in the command line with Julia

Julia has the delightful ability to generate plots constructed from Unicode symbols which are printed directly to the command line in a very straightforward way. For example, the following code generates a Unicode plot of a sine function directly to…
2
votes
1 answer

Define a Topographic EEG/MEG plot function using Julia

Is it possible to define a function like plot_topography in MatLab to draw the Topographic EEG/MEG plot in Julia?
Likan Zhan
  • 1,056
  • 6
  • 14
2
votes
1 answer

Make Julia outer plot dimensions the same in atom

This is for viewing purposes. The actual scales are the same. A short version of my question would be "Force grids to be square in plots". As can be seen in the screenshot taken from the plot in Atom, while the axis are the same increments…
Charlie Crown
  • 1,071
  • 2
  • 11
  • 28
2
votes
2 answers

How to plot complex numbers in Julia?

I was trying to plot complex numbers in Julia but I haven't found any good way to do it yet.
2
votes
1 answer

Is there a configuration file like matplotlibrc in Plots.jl?

I try to unify my figures formats across different files. I do not want to use PyPlot.jl. Is there a configuration file as matplotlibrc in Python? Or some other alternative way that can make me to write these format into a file without changing much…
flumer
  • 157
  • 5
2
votes
1 answer

Plotting Algebraic Curves in Julia

I'm looking to visualize some algebraic curves in Julia I have the polynomials: f1=(x^4+y^4-1)(x^2+y^2-2)+x^5y f2 = x^2+2xy^2-2y^2-1/2 and I would like to plot V(f1) and V(f2) so I can see their common intersections. I have tried using contour plot…
2
votes
0 answers

Julia Plots animate `gif()` hangs indefinitely

I am experiencing slightly strange behaviour from a visualisation routine I have written using Plots.jl. The module I have written uses code of the following form (with some irrelevant details removed). It is intended to produce a 2D animation of…
crevell
  • 449
  • 6
  • 19
2
votes
2 answers

hline/vline with subplots in Julia

I'm trying to add a horizontal line to a subplot, and from this discussion: https://discourse.julialang.org/t/vline-with-subplots/25479/2, I have the following x = [1,2,3] y1 = 2x y2 = x.^2 plot([x, x], [y1, y2], layout = (2, 1)) hline!([4…
Bebotron
  • 383
  • 2
  • 11