# \#plot

**URL:** https://discourse.julialang.org/tag/plot/659.md?match_all_tags=true&page=1&tags%5B%5D=plot

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

**Page:** 2

---

## [Plots.jl annotation with group colours in grouped plot](https://discourse.julialang.org/t/plots-jl-annotation-with-group-colours-in-grouped-plot/88979)

<div class="topic-metadata">

**Author:** [@klwlevy](https://discourse.julialang.org/u/klwlevy)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 3:56pm UTC](https://discourse.julialang.org/t/plots-jl-annotation-with-group-colours-in-grouped-plot/88979 "2022-10-20T15:56:25Z")

</div>

Dear Plots.jl wizards, could someone give me advice how to best get annotations in the same colour as the lines when using the group option? The following is a working example: using DataFrames, Plots gr(size=(1200, 8…

---

## [How do I get lower and upper bounds for a confidence band using LsqFit.jl?](https://discourse.julialang.org/t/how-do-i-get-lower-and-upper-bounds-for-a-confidence-band-using-lsqfit-jl/88519)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 8\
**Last updated:** [October 11, 2022, 5:00pm UTC](https://discourse.julialang.org/t/how-do-i-get-lower-and-upper-bounds-for-a-confidence-band-using-lsqfit-jl/88519 "2022-10-11T17:00:04Z")

</div>

I’m fitting a three parameters non-linear function using LsqFit.jl. I know I can get confidence intervals using confidence\_interval(fit), but how do I actually get lower and upper bound for the confidence band? I believe…

---

## [SDE simulation using DifferentialEquations.jl SDE solver RKMilGeneral](https://discourse.julialang.org/t/sde-simulation-using-differentialequations-jl-sde-solver-rkmilgeneral/88312)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 3\
**Last updated:** [October 6, 2022, 2:20am UTC](https://discourse.julialang.org/t/sde-simulation-using-differentialequations-jl-sde-solver-rkmilgeneral/88312 "2022-10-06T02:20:55Z")

</div>

I am simulating an SDE and using scatter! to plot the results. I set dt = 0.1 with timespan 0.0 to 1.0, then if use EM() as the SDE solver method I get 10 equally spaced (in-time) scatter points on the plot. Howeve…

---

## [Plot colour based on conditional](https://discourse.julialang.org/t/plot-colour-based-on-conditional/88005)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 9:35pm UTC](https://discourse.julialang.org/t/plot-colour-based-on-conditional/88005 "2022-09-29T21:35:32Z")

</div>

Is it possible to set a plot colour based on a conditional statement? In the plot method I use, for example, color = \[:gray :gray :gray\] to give me gray-coloured plot for three plots which appear in a side-by-side conf…

---

## [How to log10 scale on bar plot y axis with Makie](https://discourse.julialang.org/t/how-to-log10-scale-on-bar-plot-y-axis-with-makie/87200)

<div class="topic-metadata">

**Author:** [@Hester](https://discourse.julialang.org/u/Hester)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 2:27pm UTC](https://discourse.julialang.org/t/how-to-log10-scale-on-bar-plot-y-axis-with-makie/87200 "2022-09-14T14:27:15Z")

</div>

I am trying to display a bar plot with a log10 scale in the y axis, but I get the error Found invalid x-limits (0.0f0, 125.0f0) for scale log10 which is defined on the interval 0.0..Inf (open) despite my data not contain…

---

## [How to scale the axes in Makie subplots?](https://discourse.julialang.org/t/how-to-scale-the-axes-in-makie-subplots/85881)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 5:51pm UTC](https://discourse.julialang.org/t/how-to-scale-the-axes-in-makie-subplots/85881 "2022-08-17T17:51:56Z")

</div>

When I create subplots, the y-axis is usually taller than the x-axis. I want them to be of same (or at least similar) length. For example, the following code produces: using CairoMakie function plot() f= Figure() …

---

## [Plotting of PDF of distributions not returning correct plot](https://discourse.julialang.org/t/plotting-of-pdf-of-distributions-not-returning-correct-plot/83421)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 2\
**Last updated:** [June 27, 2022, 9:34pm UTC](https://discourse.julialang.org/t/plotting-of-pdf-of-distributions-not-returning-correct-plot/83421 "2022-06-27T21:34:13Z")

</div>

Using the following code: using Distributions dist = Normal() plot(pdf.(dist,collect(-2.0:0.1:2.0))) The plot returns as The x-axis values are incorrect, is there a reason is it not centred at 0 as it should be? …

---

## [Plot using remote server](https://discourse.julialang.org/t/plot-using-remote-server/82873)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 2\
**Last updated:** [June 17, 2022, 7:20am UTC](https://discourse.julialang.org/t/plot-using-remote-server/82873 "2022-06-17T07:20:27Z")

</div>

I have a strange simple problem but very important for my reports when I try to generate an image using Super Computer server I got it with a cut at the axis (vertical and horizontal ) like this photo this is the co…

---

## [Surface plot](https://discourse.julialang.org/t/surface-plot/82544)

<div class="topic-metadata">

**Author:** [@SDA](https://discourse.julialang.org/u/SDA)\
**Replies:** 10\
**Last updated:** [June 15, 2022, 12:59am UTC](https://discourse.julialang.org/t/surface-plot/82544 "2022-06-15T00:59:49Z")

</div>

There is no doubt a very simple answer to this that I’ve overlooked. How would one plot a surface x=y, where z is any real number?

---

## [Xubuntu 20.04 Plot install failure](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722)

<div class="topic-metadata">

**Author:** [@David\_Annetts](https://discourse.julialang.org/u/David_Annetts)\
**Replies:** 7\
**Last updated:** [June 14, 2022, 10:59am UTC](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722 "2022-06-14T10:59:11Z")

</div>

Hi, I’m looking at the possibility of using Julia as a data-processing environment. While the program (1.7.3) installs without issue, I have consistently (since (1.5.?) hit errors when attempting to install packages so…

---

## [Outline cell of heatmap](https://discourse.julialang.org/t/outline-cell-of-heatmap/77758)

<div class="topic-metadata">

**Author:** [@user\_231578](https://discourse.julialang.org/u/user_231578)\
**Replies:** 0\
**Last updated:** [March 11, 2022, 3:54pm UTC](https://discourse.julialang.org/t/outline-cell-of-heatmap/77758 "2022-03-11T15:54:27Z")

</div>

Suppose I have a heatmap. For example r = rand(1:10,5,5) heatmap(r) I would like to outline one of its cells with a dashed red rectangle. Do you have any suggestion on how to achieve this? See an example below, where …

---

## [Plotting graphs in vscode](https://discourse.julialang.org/t/plotting-graphs-in-vscode/76243)

<div class="topic-metadata">

**Author:** [@flobe](https://discourse.julialang.org/u/flobe)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 1:41pm UTC](https://discourse.julialang.org/t/plotting-graphs-in-vscode/76243 "2022-02-11T13:41:35Z")

</div>

Hi all! is the title suggests I’m struggling with plotting a graph in vscode. using GraphRecipes using Plots using Graphs n = 8 g = wheel\_digraph(n) graphplot(g) This code works perfectly fine using the julia repl in…

---

## [How to change error bars color without changing the markerstrokecolor](https://discourse.julialang.org/t/how-to-change-error-bars-color-without-changing-the-markerstrokecolor/74868)

<div class="topic-metadata">

**Author:** [@user\_231578](https://discourse.julialang.org/u/user_231578)\
**Replies:** 2\
**Last updated:** [January 20, 2022, 12:37pm UTC](https://discourse.julialang.org/t/how-to-change-error-bars-color-without-changing-the-markerstrokecolor/74868 "2022-01-20T12:37:03Z")

</div>

I would like to change the error bars colors to match the graph colors without changing the markerstrokecolor. If I set markerstrokecolor=:auto, also the markers’ border change. I would like the latter to remain black. W…

---

## [How do I plot data from a dictionary?](https://discourse.julialang.org/t/how-do-i-plot-data-from-a-dictionary/67249)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 1\
**Last updated:** [August 29, 2021, 12:25am UTC](https://discourse.julialang.org/t/how-do-i-plot-data-from-a-dictionary/67249 "2021-08-29T00:25:40Z")

</div>

Hello there. I’m trying to plot some data from a dictionary like this: Dict{Any, Any} with 7 entries: "C" =\> 13.3147 "C ffast-math" =\> 8.47802 "Python- Built-in" =\> 1937.68 "Python n…

---

## [Get a legend with twinx()](https://discourse.julialang.org/t/get-a-legend-with-twinx/63672)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 8:39am UTC](https://discourse.julialang.org/t/get-a-legend-with-twinx/63672 "2021-06-28T08:39:50Z")

</div>

Hi, I’m using the twinx () command, is there a way to have both labels in the same legend? using Plots x12=randn(10) y12=1000\*randn(10) plot(x12, label="x12") plot!(twinx(), y12, c=:red, legend=:bottomleft, label="y12")…

---

## [Put all names on bar chart](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 11:20pm UTC](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191 "2021-06-19T23:20:08Z")

</div>

Hello, I am making a bar graph of the annual income for districts within each department. I have two problems, (i) when I make the bar graph not all the names of the districts appear and (ii) is there a format so that it…

---

## [The plot command moves the graph](https://discourse.julialang.org/t/the-plot-command-moves-the-graph/62161)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 11\
**Last updated:** [June 12, 2021, 3:32am UTC](https://discourse.julialang.org/t/the-plot-command-moves-the-graph/62161 "2021-06-12T03:32:45Z")

</div>

Hello, I’m new programming in Julia. I have two queries regarding the Plots package. (i) Is there a way to integrate the colors generated by “distinguishable\_colors (10)” into the scatter below? (ii) Do you know why the …

---

## [Plot the Theodorus Spiral with Plots](https://discourse.julialang.org/t/plot-the-theodorus-spiral-with-plots/61720)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 2\
**Last updated:** [May 24, 2021, 2:30pm UTC](https://discourse.julialang.org/t/plot-the-theodorus-spiral-with-plots/61720 "2021-05-24T14:30:40Z")

</div>

Tried to reproduce the following code from the link in Julia But I can’t configure the graphics part correctly. I show you where I have been: #https://theredforgepublishinghouse.com/learn-maths-with-the-theodorus-spir…

---

## [Create gif](https://discourse.julialang.org/t/create-gif/59029)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 9\
**Last updated:** [April 27, 2021, 9:54am UTC](https://discourse.julialang.org/t/create-gif/59029 "2021-04-27T09:54:02Z")

</div>

I need to create an animated image (gif) from this script from a set of temperatures \[ T0 -|- T2 \]: \[EvptTemp CndsTemp\] 55 33 55 34 55 35 55 36 55 37 55 38 55 39 55 40 55 41 5…

---

## [Plots GR axis break](https://discourse.julialang.org/t/plots-gr-axis-break/59322)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 5\
**Last updated:** [April 20, 2021, 12:48am UTC](https://discourse.julialang.org/t/plots-gr-axis-break/59322 "2021-04-20T00:48:53Z")

</div>

Is it possible to plot a figure containing axis break like this using Plots.jl and GR backend? Especially in boxplot.

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