# \#plot

**URL:** https://discourse.julialang.org/tag/plot/659.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Pythonplot: let LaTeX render text in final document](https://discourse.julialang.org/t/pythonplot-let-latex-render-text-in-final-document/134372)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 6\
**Last updated:** [December 15, 2025, 12:19pm UTC](https://discourse.julialang.org/t/pythonplot-let-latex-render-text-in-final-document/134372 "2025-12-15T12:19:04Z")

</div>

I would like to better integrate my plots into a LaTeX document. I know about PGFPlots(X) and I really like the idea, unfortunately I could only really work with Py(thon)Plots so far, because of the lack of features in o…

---

## [Is there a standard way of building packages with graphical extension](https://discourse.julialang.org/t/is-there-a-standard-way-of-building-packages-with-graphical-extension/130254)

<div class="topic-metadata">

**Author:** [@Herve](https://discourse.julialang.org/u/Herve)\
**Replies:** 3\
**Last updated:** [July 1, 2025, 1:35am UTC](https://discourse.julialang.org/t/is-there-a-standard-way-of-building-packages-with-graphical-extension/130254 "2025-07-01T01:35:13Z")

</div>

Hi. I often bump into the following problem, related to graphics libraries. I have worked with Matlab for more than 20 years, so I had my habits (I nearly stopped since I adopted Julia, and have been all the more happy)…

---

## [Import external PDF or SVG to Makie figure](https://discourse.julialang.org/t/import-external-pdf-or-svg-to-makie-figure/126891)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 8\
**Last updated:** [March 15, 2025, 6:11pm UTC](https://discourse.julialang.org/t/import-external-pdf-or-svg-to-makie-figure/126891 "2025-03-15T18:11:59Z")

</div>

Hello, I would like to create a simple figure with Makie.jl, where on the left I have an Axis, and on the right an external PDF. I haven’t found anything around, except the MakieTeX.jl package, where I can import a PDF …

---

## [Labeling plots](https://discourse.julialang.org/t/labeling-plots/126074)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 6\
**Last updated:** [February 20, 2025, 10:02am UTC](https://discourse.julialang.org/t/labeling-plots/126074 "2025-02-20T10:02:03Z")

</div>

This is strictly speaking not a Julia question, even though I am using Julia for plotting, but I guess that a lot of people here care about scientific visualization here so it is OK. The question is: if you are plotting…

---

## [Grouping geommetries by colums](https://discourse.julialang.org/t/grouping-geommetries-by-colums/122241)

<div class="topic-metadata">

**Author:** [@Daves\_Cordova](https://discourse.julialang.org/u/Daves_Cordova)\
**Replies:** 2\
**Last updated:** [November 5, 2024, 2:33pm UTC](https://discourse.julialang.org/t/grouping-geommetries-by-colums/122241 "2024-11-05T14:33:28Z")

</div>

I need to combine geometries for a shapefile. Initially, there is shapefile\_path\_cities that will form the layer behind, after theres is shapefile\_path\_highways: using GeoDataFrames using DataFrames using XLSX using Plo…

---

## [Why does the plot of EnsembleProblem differ from the original ODEProblem?](https://discourse.julialang.org/t/why-does-the-plot-of-ensembleproblem-differ-from-the-original-odeproblem/118415)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 5:59pm UTC](https://discourse.julialang.org/t/why-does-the-plot-of-ensembleproblem-differ-from-the-original-odeproblem/118415 "2024-08-29T17:59:44Z")

</div>

I assume that if I don’t change the problem in EnsembleProblem, the EnsembleSummary should produce the same plot as the original ODEProblem solution. Simple example: module test using Plots, StatsPlots using LinearAlg…

---

## [GeoMakie meshimage colormap not applying and ticks overlapping](https://discourse.julialang.org/t/geomakie-meshimage-colormap-not-applying-and-ticks-overlapping/115903)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 3\
**Last updated:** [June 22, 2024, 12:48am UTC](https://discourse.julialang.org/t/geomakie-meshimage-colormap-not-applying-and-ticks-overlapping/115903 "2024-06-22T00:48:56Z")

</div>

Hi, this is a continuation of a previous question I’ve had on here. At the moment I have some code like this to produce a mollweide projection image of the whole sky: using Healpix using GeoMakie function main() f…

---

## [Plot recipe that performs multiple plot calls](https://discourse.julialang.org/t/plot-recipe-that-performs-multiple-plot-calls/114944)

<div class="topic-metadata">

**Author:** [@kirklong](https://discourse.julialang.org/u/kirklong)\
**Replies:** 1\
**Last updated:** [May 30, 2024, 5:44pm UTC](https://discourse.julialang.org/t/plot-recipe-that-performs-multiple-plot-calls/114944 "2024-05-30T17:44:38Z")

</div>

I am trying to define a recipe for a custom type. I have gotten a basic thing to work using the @userplot macro and following some examples, but I want to extend this to allow the recipe to do what would be multiple plot…

---

## [Can I customize tooltip in Plots using Plotly backend?](https://discourse.julialang.org/t/can-i-customize-tooltip-in-plots-using-plotly-backend/114577)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 2:47pm UTC](https://discourse.julialang.org/t/can-i-customize-tooltip-in-plots-using-plotly-backend/114577 "2024-05-22T14:47:01Z")

</div>

Hi, Is there any way to customize the tooltip message in Plots using Plotly backend? For instance, I have the example below. using Plots plotly(ticks=:native) my\_plot = plot(\[1, 2, 4\], \[3, 4, 10\], title="Meu gráfico")…

---

## [Color gradient doesn't work](https://discourse.julialang.org/t/color-gradient-doesnt-work/111734)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [March 21, 2024, 9:39pm UTC](https://discourse.julialang.org/t/color-gradient-doesnt-work/111734 "2024-03-21T21:39:50Z")

</div>

I have a for loop. I want the color used to be evenly spaced from a color gradient such as inferno. I read various stuff online, but none works. for example trying the palette = : inferno in ax.plot of pythonplot gives: …

---

## [Pythonplot, set 2 plots with same color](https://discourse.julialang.org/t/pythonplot-set-2-plots-with-same-color/111692)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 9:36am UTC](https://discourse.julialang.org/t/pythonplot-set-2-plots-with-same-color/111692 "2024-03-16T09:36:24Z")

</div>

This little program: using PythonPlot x = \[1,2\] y = \[2,3\] fig1 = pyplot.figure() ax1 = fig1.add\_subplot(1, 1, 1) ax1.plot(x,y, '.', markersize=10) ax1.plot(x,y,'-') gives : I want to use what I would have done in…

---

## [Clearing axis cache on Julia REPL](https://discourse.julialang.org/t/clearing-axis-cache-on-julia-repl/111369)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 5\
**Last updated:** [March 9, 2024, 7:58am UTC](https://discourse.julialang.org/t/clearing-axis-cache-on-julia-repl/111369 "2024-03-09T07:58:39Z")

</div>

I have this program using PythonPlot x = \[1, 2\] y = Float64\[1.01, 1.02\] fig1 = pyplot.figure(1) ax1 = fig1.add\_subplot(1, 1, 1) plot(x, y, '.') pyplot.suptitle(L"title", fontsize=12) ax1.set\_ylabel(L"x \\ axis", fontsi…

---

## [Julia in Python, Float64 plots needed](https://discourse.julialang.org/t/julia-in-python-float64-plots-needed/111279)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 9:29am UTC](https://discourse.julialang.org/t/julia-in-python-float64-plots-needed/111279 "2024-03-07T09:29:37Z")

</div>

I need to create accurate plots and as said in thread GLMakie vs Plots, not enogh precision for axis limits, Makie is not eough, using Float32. Plots neither, as it explicitely says in the REPL that there may be inaccura…

---

## [Output doesn't show plots](https://discourse.julialang.org/t/output-doesnt-show-plots/111092)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 23\
**Last updated:** [March 5, 2024, 11:04am UTC](https://discourse.julialang.org/t/output-doesnt-show-plots/111092 "2024-03-05T11:04:17Z")

</div>

I followed the documentation: https://docs.juliaplots.org/latest/output/ and tried to write show=true and using Plots arr = \[1.2, 1.4, 1.5, 1.1\] x = \[1, 2, 3, 4\] p = scatter(x, arr) display(p) But no new window with …

---

## [What is supposed to be copied from the context menu of a plot?](https://discourse.julialang.org/t/what-is-supposed-to-be-copied-from-the-context-menu-of-a-plot/108522)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 2\
**Last updated:** [January 9, 2024, 9:03am UTC](https://discourse.julialang.org/t/what-is-supposed-to-be-copied-from-the-context-menu-of-a-plot/108522 "2024-01-09T09:03:36Z")

</div>

What is supposed to be copies from the context menu of a plot and where can it be pasted?

---

## [How to plot a line in 3D using Plots.jl?](https://discourse.julialang.org/t/how-to-plot-a-line-in-3d-using-plots-jl/108267)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 8\
**Last updated:** [January 8, 2024, 12:15pm UTC](https://discourse.julialang.org/t/how-to-plot-a-line-in-3d-using-plots-jl/108267 "2024-01-08T12:15:54Z")

</div>

How to plot a line in a 3D axis? Say, I want a parabola in the xy-plane (z=0) The straightforward options do not work; This one results an empty canvas \[-1, 1\] x \[-1, 1\]: using Plots xs = -5:1:5 plot(xs, xs.^2, 0) T…

---

## [How to plot a sequence of probability density functions as lines in (pseudo) 3D?](https://discourse.julialang.org/t/how-to-plot-a-sequence-of-probability-density-functions-as-lines-in-pseudo-3d/105614)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 7\
**Last updated:** [November 2, 2023, 11:42am UTC](https://discourse.julialang.org/t/how-to-plot-a-sequence-of-probability-density-functions-as-lines-in-pseudo-3d/105614 "2023-11-02T11:42:25Z")

</div>

Given a set of PDFs f1(x), f2(x) etc., I’d like to plot something like this: The closest method I found is density from Makie, but it doesn’t work with functions or their values per se. How can I make such a plot?

---

## [Easy way to plot a circle given as a vector of vectors (pointwise) as line plot?](https://discourse.julialang.org/t/easy-way-to-plot-a-circle-given-as-a-vector-of-vectors-pointwise-as-line-plot/104574)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 15\
**Last updated:** [October 5, 2023, 9:30am UTC](https://discourse.julialang.org/t/easy-way-to-plot-a-circle-given-as-a-vector-of-vectors-pointwise-as-line-plot/104574 "2023-10-05T09:30:15Z")

</div>

Is there an easier way to plot a shape (in geometric sense, not Plots.jl’s) given as a vector of points (i.e. 2D-vectors)? using Plots # approximately a circle vector\_of\_points = \[\[0.708441362115303, 1.413585198669223\]…

---

## [When using seriestype=:scatter, create individual labels for each dot?](https://discourse.julialang.org/t/when-using-seriestype-scatter-create-individual-labels-for-each-dot/104233)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 5\
**Last updated:** [September 26, 2023, 3:50pm UTC](https://discourse.julialang.org/t/when-using-seriestype-scatter-create-individual-labels-for-each-dot/104233 "2023-09-26T15:50:29Z")

</div>

I am using Plot recipes to create a plot overload for a special type of input. The result is a scatter plot with something like: @recipe function f(ms::MyStruct) seriestype --\> :scatter ms.x\_vals, ms.y\_vals end…

---

## [How to add line for indicating mean on histogram?](https://discourse.julialang.org/t/how-to-add-line-for-indicating-mean-on-histogram/103444)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [September 1, 2023, 1:24pm UTC](https://discourse.julialang.org/t/how-to-add-line-for-indicating-mean-on-histogram/103444 "2023-09-01T13:24:00Z")

</div>

I have this histogram and want to add a vline to show mean value or median value. vline!(some\_value). is not working. I get this error. ERROR: Cannot convert Float64 to series data for plotting Stacktrace: \[1\] er…

---

## [Plots, InitError: UndefVarError: GR\_jll not defined](https://discourse.julialang.org/t/plots-initerror-undefvarerror-gr-jll-not-defined/102448)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 4\
**Last updated:** [August 9, 2023, 8:31am UTC](https://discourse.julialang.org/t/plots-initerror-undefvarerror-gr-jll-not-defined/102448 "2023-08-09T08:31:44Z")

</div>

In some circumstances, a user may encounter the following error. Failed to precompile Plots \[91a5bcdd-55d7-5caf-9e0b-520d859cae80\] to "~/.julia/compiled/v1.9/Plots/jl\_crbDAx". ERROR: LoadError: InitError: UndefVarError:…

---

## [The scale-change of "cgrad" is invalidated when colorschemes are jointed](https://discourse.julialang.org/t/the-scale-change-of-cgrad-is-invalidated-when-colorschemes-are-jointed/100966)

<div class="topic-metadata">

**Author:** [@Fluorite-Erbite](https://discourse.julialang.org/u/Fluorite-Erbite)\
**Replies:** 2\
**Last updated:** [June 30, 2023, 4:33am UTC](https://discourse.julialang.org/t/the-scale-change-of-cgrad-is-invalidated-when-colorschemes-are-jointed/100966 "2023-06-30T04:33:09Z")

</div>

Julia 1.9.0 downloaded from the official (Sorry for my poor English) I want to join 2 colorschemes, before which each scale is change (:log). Example, cs1 = reverse( cgrad( palette( \[:red, :orange, :yellow, :lawngree…

---

## [\[CairoMakie\] Mirrored axis sharing](https://discourse.julialang.org/t/cairomakie-mirrored-axis-sharing/99939)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 6:57pm UTC](https://discourse.julialang.org/t/cairomakie-mirrored-axis-sharing/99939 "2023-06-06T18:57:27Z")

</div>

Hello, :smiley: Is it possible to do a “Mirrored axis sharing” in CairoMakie, like on this image for example? (from Axes review · Issue #206 · MakieOrg/Makie.jl (github.com) Thank you ! fdekerm

---

## [Disabling zoom events for PlotlyJS backend for Plots.jl](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340)

<div class="topic-metadata">

**Author:** [@viperML](https://discourse.julialang.org/u/viperML)\
**Replies:** 2\
**Last updated:** [May 8, 2023, 3:42pm UTC](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340 "2023-05-08T15:42:07Z")

</div>

Hello :wave: I would like to disable zoom events for my interactive plot. Apparently you can do this with plotly.js by setting this layout option: Disable zoom events in JavaScript xaxis: {fixedrange: true} Is it poss…

---

## [How to modify plot on click?](https://discourse.julialang.org/t/how-to-modify-plot-on-click/95419)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 0\
**Last updated:** [March 2, 2023, 12:34am UTC](https://discourse.julialang.org/t/how-to-modify-plot-on-click/95419 "2023-03-02T00:34:16Z")

</div>

The other day, I saw a research presenting a graph where he added points where he clicked and did arbitrary logic on them upon adding them (to be precise, it was a Poincaré section, and adding a point computed and showed…

---

## [ControlSystems + PlotlyJS](https://discourse.julialang.org/t/controlsystems-plotlyjs/91898)

<div class="topic-metadata">

**Author:** [@stephans3](https://discourse.julialang.org/u/stephans3)\
**Replies:** 1\
**Last updated:** [December 20, 2022, 4:44pm UTC](https://discourse.julialang.org/t/controlsystems-plotlyjs/91898 "2022-12-20T16:44:42Z")

</div>

I just read in this post Implementation of matlab function in julia (Root locus plot) that it is possible to use ControlSystems together with PlotlyJS. To use plotlyjs() the package PlotlyJShas to be installed. using…

---

## [Mark the Intersection Points on a Plot Graph](https://discourse.julialang.org/t/mark-the-intersection-points-on-a-plot-graph/90828)

<div class="topic-metadata">

**Author:** [@wrisurcuriosity](https://discourse.julialang.org/u/wrisurcuriosity)\
**Replies:** 10\
**Last updated:** [November 26, 2022, 6:11pm UTC](https://discourse.julialang.org/t/mark-the-intersection-points-on-a-plot-graph/90828 "2022-11-26T18:11:41Z")

</div>

Hi guys, I am struggling to point the intersection of two graphs. I am currently working on time complexity on sorting algorithms in insertion and merge. My data sets for the graphs will follow like: plot(elements,time…

---

## [How to change angle of arrow in Plot](https://discourse.julialang.org/t/how-to-change-angle-of-arrow-in-plot/90781)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 9:39pm UTC](https://discourse.julialang.org/t/how-to-change-angle-of-arrow-in-plot/90781 "2022-11-24T21:39:20Z")

</div>

I am trying to plot the changes in body angle using arrow in plot. I set the initial body angle as 45 degrees. I want to make the blue square and the arrow turn according to the change in angle. q is the position of the …

---

## [Plotting single points on an anonymous function](https://discourse.julialang.org/t/plotting-single-points-on-an-anonymous-function/90126)

<div class="topic-metadata">

**Author:** [@comical\_intersection](https://discourse.julialang.org/u/comical_intersection)\
**Replies:** 5\
**Last updated:** [November 11, 2022, 9:55pm UTC](https://discourse.julialang.org/t/plotting-single-points-on-an-anonymous-function/90126 "2022-11-11T21:55:22Z")

</div>

I have a function which depends on a single variable x and a variable l. I plot these functions for different integer variables of l like so: plot!(fig, x-\>f(x, l=3)) so in general: plot!(fig, x-\>f(x, l=i)) However …

---

## [How to plot a function with complex values?](https://discourse.julialang.org/t/how-to-plot-a-function-with-complex-values/90026)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 3\
**Last updated:** [November 10, 2022, 12:46pm UTC](https://discourse.julialang.org/t/how-to-plot-a-function-with-complex-values/90026 "2022-11-10T12:46:42Z")

</div>

I’d like to plot a function on the complex plane, but I’m not very familiar with complex numbers in Julia anymore. How to plot h\_z(x)= e^{i \\langle z,x \\rangle}- 1 when z is fixed? For example, z=(1,1). How to visualiz…

[Next page](https://discourse.julialang.org/tag/plot/659.md?match_all_tags=true&page=1&tags%5B%5D=plot)
