# Visualization

**URL:** https://discourse.julialang.org/c/domain/viz/17.md?page=44

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

**Page:** 45

---

## [Range step cannot be zero](https://discourse.julialang.org/t/range-step-cannot-be-zero/66948)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 10\
**Last updated:** [September 2, 2022, 8:18am UTC](https://discourse.julialang.org/t/range-step-cannot-be-zero/66948 "2022-09-02T08:18:37Z")

</div>

I don’t know how to make a minimal reproducer of this but I can’t make it work either. Here’s the error I can share. Any ideas would be helpful. I’m trying to make a Band plot but all the high values are equal and all th…

---

## [Save a figure with a specific size with a subplot of a specific size in Plots.jl (with PGFPlotsX backend)](https://discourse.julialang.org/t/save-a-figure-with-a-specific-size-with-a-subplot-of-a-specific-size-in-plots-jl-with-pgfplotsx-backend/86614)

<div class="topic-metadata">

**Author:** [@JonasWickman](https://discourse.julialang.org/u/JonasWickman)\
**Replies:** 2\
**Last updated:** [September 1, 2022, 3:02pm UTC](https://discourse.julialang.org/t/save-a-figure-with-a-specific-size-with-a-subplot-of-a-specific-size-in-plots-jl-with-pgfplotsx-backend/86614 "2022-09-01T15:02:54Z")

</div>

In PyPlot, I can output a figure with a specific size containing an axis in the figure with a specific size using the code: using PyPlot fig\_width = 4.0 fig\_height = 3.0 fig = figure( figsize = (fig\_width, fig\_height) )…

---

## [Best library for visualizing time series](https://discourse.julialang.org/t/best-library-for-visualizing-time-series/86602)

<div class="topic-metadata">

**Author:** [@mariuszoican](https://discourse.julialang.org/u/mariuszoican)\
**Replies:** 12\
**Last updated:** [August 31, 2022, 5:45pm UTC](https://discourse.julialang.org/t/best-library-for-visualizing-time-series/86602 "2022-08-31T17:45:45Z")

</div>

Hello, I was wondering what is the best library for visualizing time series? I’m coming from Python, where I’m using matplotlib and seaborn. Tried Gadfly, but it’s not very prone customization – I couldn’t figure out ho…

---

## [Updated Makie 0.17.13 Can't turn off the decorations](https://discourse.julialang.org/t/updated-makie-0-17-13-cant-turn-off-the-decorations/86232)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 2:07pm UTC](https://discourse.julialang.org/t/updated-makie-0-17-13-cant-turn-off-the-decorations/86232 "2022-08-31T14:07:24Z")

</div>

I have some old Makie GUI code I wrote a year or more ago. It used LScene and all that before the figure stuff was around. Now after the update, I have my decorations and splines showing up in my 3D plots, but since I …

---

## [StatPlots groupedbar order x axis](https://discourse.julialang.org/t/statplots-groupedbar-order-x-axis/13912)

<div class="topic-metadata">

**Author:** [@stelmo](https://discourse.julialang.org/u/stelmo)\
**Replies:** 18\
**Last updated:** [August 30, 2022, 10:00pm UTC](https://discourse.julialang.org/t/statplots-groupedbar-order-x-axis/13912 "2022-08-30T22:00:05Z")

</div>

Hi, Is there a way to order the x-axis bars using groupedbar? Currently it is placing the individual bars alphabetically, but I would like to specify the order manually. I have tried using plot!(xticks=(1:10, labels)), …

---

## [Makie - Use of textbox validator](https://discourse.julialang.org/t/makie-use-of-textbox-validator/86487)

<div class="topic-metadata">

**Author:** [@JB\_15](https://discourse.julialang.org/u/JB_15)\
**Replies:** 4\
**Last updated:** [August 29, 2022, 3:45pm UTC](https://discourse.julialang.org/t/makie-use-of-textbox-validator/86487 "2022-08-29T15:45:27Z")

</div>

Hi I’m trying to use the validator from the Makie Textbox https://makie.juliaplots.org/v0.17.13/examples/blocks/textbox/index.html Could anybody give me an example of how to use the validator? My goal is to verify th…

---

## [Makie plot recipe collections?](https://discourse.julialang.org/t/makie-plot-recipe-collections/86434)

<div class="topic-metadata">

**Author:** [@fedario](https://discourse.julialang.org/u/fedario)\
**Replies:** 3\
**Last updated:** [August 27, 2022, 8:27pm UTC](https://discourse.julialang.org/t/makie-plot-recipe-collections/86434 "2022-08-27T20:27:02Z")

</div>

Hi community! I noticed that Makie.jl enables you to create custom recipes. Before I start creating something myself, I thought I’d ask: Are there repositories containing collections of recipes that extend Makie’s defau…

---

## [Help me with Julia/R comparison project, how to plot US county maps in Plots/StatsPlots (or what's best alternative)?](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 18\
**Last updated:** [August 26, 2022, 10:23pm UTC](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686 "2022-08-26T22:23:52Z")

</div>

I’m working with Phil Price over at Andrew Gelman’s blog https://statmodeling.stat.columbia.edu/ to do a comparison between using R and using Julia for basic data analysis stuff. We’ve got a few simple tasks and are imp…

---

## [Xtics font size in Makie?](https://discourse.julialang.org/t/xtics-font-size-in-makie/86377)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 10:31am UTC](https://discourse.julialang.org/t/xtics-font-size-in-makie/86377 "2022-08-26T10:31:13Z")

</div>

How can I tune the xtics font size in Makie ? Thank your for your help.

---

## [How to change the line width of mean curve when plotting with Plots.jl and MonteCarloMeasurements.jl](https://discourse.julialang.org/t/how-to-change-the-line-width-of-mean-curve-when-plotting-with-plots-jl-and-montecarlomeasurements-jl/86046)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 11:37pm UTC](https://discourse.julialang.org/t/how-to-change-the-line-width-of-mean-curve-when-plotting-with-plots-jl-and-montecarlomeasurements-jl/86046 "2022-08-25T23:37:11Z")

</div>

Using plot command in MonteCarloMeasurements.jl package, I have a plot of mean function and a shaded area showing the (0.025,0.0975) quantiles. How can I change the width (or line style) of the mean curve? I tried alrea…

---

## [Makie.jl: Axis3() reverse limits don't work](https://discourse.julialang.org/t/makie-jl-axis3-reverse-limits-dont-work/80438)

<div class="topic-metadata">

**Author:** [@ewillcox](https://discourse.julialang.org/u/ewillcox)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 8:42am UTC](https://discourse.julialang.org/t/makie-jl-axis3-reverse-limits-dont-work/80438 "2022-08-25T08:42:37Z")

</div>

I am attempting to create a plot that has x = longitude, y=latitude, and z= depth. Since z = 0 is the surface, I need to reverse the limits (e.g. zlims!() ). Although this works perfectly for Axes(), it does not for Axi…

---

## [Animations in books](https://discourse.julialang.org/t/animations-in-books/86137)

<div class="topic-metadata">

**Author:** [@mcmwright](https://discourse.julialang.org/u/mcmwright)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 10:48am UTC](https://discourse.julialang.org/t/animations-in-books/86137 "2022-08-25T10:48:06Z")

</div>

I teach acoustics and vibration, and I use a lot of Python animations in Jupyter notebooks with my students. It’s useful for them to be able to step back and forth through the animation a frame at a time within the noteb…

---

## [Makie: axis limits with Inf](https://discourse.julialang.org/t/makie-axis-limits-with-inf/85784)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 3:32am UTC](https://discourse.julialang.org/t/makie-axis-limits-with-inf/85784 "2022-08-25T03:32:02Z")

</div>

GLMakie doesn’t seem to adjust axis limits automatically if the data contains an Inf. E,g. using GLMakie lines(1:6,\[-1, -2, 3, -Inf, -10, -11\]) gives You have to use xlims!() and ylims() to see all the data. It see…

---

## [Plots.heatmap negative axis bug](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [August 24, 2022, 3:49pm UTC](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268 "2022-08-24T15:49:04Z")

</div>

Ever notice how if you put values for the x-axis or y-axis that start positive and go negative, the heatmap can’t make the plot. FF=rand(10,20) Plots.heatmap(1:20,1:10,FF) # What it should look like Plots.heatmap(1:20…

---

## [Why do font sizes change with dpi in Plots?](https://discourse.julialang.org/t/why-do-font-sizes-change-with-dpi-in-plots/86220)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 2:18pm UTC](https://discourse.julialang.org/t/why-do-font-sizes-change-with-dpi-in-plots/86220 "2022-08-24T14:18:48Z")

</div>

I would like to save plots as .png files at a certain dpi resolution, import into MS Word, then set the width of the image to the correct length according to the dpi setting. However, changing the dpi with Plots.jl in 3 …

---

## [Plot, linewidth in legend](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 3\
**Last updated:** [August 23, 2022, 8:14pm UTC](https://discourse.julialang.org/t/plot-linewidth-in-legend/57010 "2022-08-23T20:14:44Z")

</div>

Hello When I have several lines on a plot, the legend is hard to read. The linewidth used in the legend is thin even when it is thick in the plot. Would it be possible to increase the linewidth used in a legend (to ma…

---

## [Change line length in legend with Plots](https://discourse.julialang.org/t/change-line-length-in-legend-with-plots/86219)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [August 23, 2022, 7:43pm UTC](https://discourse.julialang.org/t/change-line-length-in-legend-with-plots/86219 "2022-08-23T19:43:49Z")

</div>

Can the length of the example line in the legend be changed? I’m particularly interested in pyplot().

---

## [Scrollable plots](https://discourse.julialang.org/t/scrollable-plots/85871)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 5\
**Last updated:** [August 22, 2022, 9:42pm UTC](https://discourse.julialang.org/t/scrollable-plots/85871 "2022-08-22T21:42:05Z")

</div>

In this stack overflow post there is a Python solution to produce scrollable plots, which I could not find in Julia plotting packages. Tried running the SO code below but got stuck at the def update(val): part: using P…

---

## [Align axes to each other with Makie.jl](https://discourse.julialang.org/t/align-axes-to-each-other-with-makie-jl/86124)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 6\
**Last updated:** [August 22, 2022, 6:18pm UTC](https://discourse.julialang.org/t/align-axes-to-each-other-with-makie-jl/86124 "2022-08-22T18:18:08Z")

</div>

Hello everyone. I’m having trouble with aligning axes of two plots with different scales. Below is a reproducible example: begin fig = Figure(resolution = (1920, 1080)); update\_theme!(fontsize = 24); axis = …

---

## [Plotting Half of a Upper Triangular Matrix](https://discourse.julialang.org/t/plotting-half-of-a-upper-triangular-matrix/86098)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 2\
**Last updated:** [August 21, 2022, 6:53pm UTC](https://discourse.julialang.org/t/plotting-half-of-a-upper-triangular-matrix/86098 "2022-08-21T18:53:13Z")

</div>

Hi, I am plotting an upper triangular matrix where the bottom half of the matrix is full of zeros. The heatmap as it currently stands looks like the following I would like to just essentially fold this in half howeve…

---

## [Pluto and WGLMakie error](https://discourse.julialang.org/t/pluto-and-wglmakie-error/86093)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 0\
**Last updated:** [August 21, 2022, 4:12pm UTC](https://discourse.julialang.org/t/pluto-and-wglmakie-error/86093 "2022-08-21T16:12:58Z")

</div>

I am getting a new error when trying to use WGLMakie inside Pluto and no plot output. I haven’t been able to find a discussion of this error and it seems to happen in a new environment with just Pluto. julia\> versioninf…

---

## [Text! in Makie](https://discourse.julialang.org/t/text-in-makie/86074)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 2\
**Last updated:** [August 20, 2022, 9:01pm UTC](https://discourse.julialang.org/t/text-in-makie/86074 "2022-08-20T21:01:06Z")

</div>

Given I have multiple plots in one figure can someone tell me why the following does not work. using CairoMakie fig = Figure() ax1 = Axis(fig\[1, 1\]) ax2 = Axis(fig\[1, 2\]) ax3 = Axis(fig\[2, 1:2\]) lines!(ax1, 0..10, sin)…

---

## [Flipping the y-axis of heatmap in CairoMakie](https://discourse.julialang.org/t/flipping-the-y-axis-of-heatmap-in-cairomakie/86055)

<div class="topic-metadata">

**Author:** [@Xavier\_Gonzalez](https://discourse.julialang.org/u/Xavier_Gonzalez)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 5:56pm UTC](https://discourse.julialang.org/t/flipping-the-y-axis-of-heatmap-in-cairomakie/86055 "2022-08-20T17:56:45Z")

</div>

I am trying to flip the y-axis in some heatmaps. The below code (when I have only one heatmap) works fine: begin fig = Figure(resolution=(600, 600)) ax = Axis(fig\[1, 1\]) hm = heatmap!(fig\[1,1\],mat) cb = Colorbar(fi…

---

## [How to seed the \`random\_layout\` in the GraphPlot package?](https://discourse.julialang.org/t/how-to-seed-the-random-layout-in-the-graphplot-package/86015)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 3:46pm UTC](https://discourse.julialang.org/t/how-to-seed-the-random-layout-in-the-graphplot-package/86015 "2022-08-19T15:46:49Z")

</div>

Can I seed the random\_layout when using the GraphPlot package to visualize a graph? For example: using GraphPlot using Graphs using Compose g = SimpleGraph() add\_vertices!(g,25) for i in 1:10 for j in 11:25 …

---

## [Lines on maps with PlotlyJS](https://discourse.julialang.org/t/lines-on-maps-with-plotlyjs/86000)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 1:54pm UTC](https://discourse.julialang.org/t/lines-on-maps-with-plotlyjs/86000 "2022-08-19T13:54:45Z")

</div>

I want to use PlotlyJS to create lines on maps as explained here. I build on the maps example from the PlotlyJS documentation to “translate” the JavaScript code into the Julia/PlotlyJS notation, but the resulting map doe…

---

## [How to increase the vertical gap between subplots in Plots.jl](https://discourse.julialang.org/t/how-to-increase-the-vertical-gap-between-subplots-in-plots-jl/85990)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-increase-the-vertical-gap-between-subplots-in-plots-jl/85990 "2022-08-19T10:11:13Z")

</div>

I have four subplots using MonteCarloMeasurements, Plots x = LinRange(1:0.1:3) a = 1 \\pm 0.1 b = 2 \\pm 0.3 f(x) = a\*x + b fig1 = plot(x, f.(x)) fig2 = plot(x, f.(x)) fig3 = plot(x, f.(x)) fig4 = plot(x, f.(x)) They…

---

## [Plots.jl with PGFPlotsX adds series in the wrong order](https://discourse.julialang.org/t/plots-jl-with-pgfplotsx-adds-series-in-the-wrong-order/85896)

<div class="topic-metadata">

**Author:** [@Joseph\_Bradley](https://discourse.julialang.org/u/Joseph_Bradley)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 9:23pm UTC](https://discourse.julialang.org/t/plots-jl-with-pgfplotsx-adds-series-in-the-wrong-order/85896 "2022-08-17T21:23:17Z")

</div>

In Plots.jl, the PGFPlotsX backend won’t let me add another series with proper control over the z-order. Here is the MWE: using Plots pgfplotsx() input = range(0, 4π, 100) output = cos.(input) plt = scatter(input, out…

---

## [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() …

---

## [Makie - tricontourf from matplotlib in Makie](https://discourse.julialang.org/t/makie-tricontourf-from-matplotlib-in-makie/77685)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 13\
**Last updated:** [August 17, 2022, 12:06pm UTC](https://discourse.julialang.org/t/makie-tricontourf-from-matplotlib-in-makie/77685 "2022-08-17T12:06:06Z")

</div>

Hi everyone, I am trying to get something like tricontourf from matplotlib to work in Makie. The heatmap with three vector inputs example here is the closest I can find in the documentation, but there’s no obvious way t…

---

## [Problem when intall MathTexEngine v0.5.0](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817)

<div class="topic-metadata">

**Author:** [@zhzhang](https://discourse.julialang.org/u/zhzhang)\
**Replies:** 4\
**Last updated:** [August 16, 2022, 1:30pm UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817 "2022-08-16T13:30:48Z")

</div>

Hi all, I want to update the MathTexEngine from 0.4.3 to 0.5.0. However, the Pkg threw these errors. (@v1.7) pkg\> add MathTeXEngine@0.5 Resolving package versions... ERROR: Unsatisfiable requirements detected for pac…

[Previous page](https://discourse.julialang.org/c/domain/viz/17.md?page=43)

[Next page](https://discourse.julialang.org/c/domain/viz/17.md?page=45)
