# Visualization

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

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

**Page:** 88

---

## [Having problems with creating animations with Plots.jl - GRBackend - Juno](https://discourse.julialang.org/t/having-problems-with-creating-animations-with-plots-jl-grbackend-juno/21876)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 6\
**Last updated:** [March 21, 2019, 3:41pm UTC](https://discourse.julialang.org/t/having-problems-with-creating-animations-with-plots-jl-grbackend-juno/21876 "2019-03-21T15:41:19Z")

</div>

Hello! I am trying to create a simple animation in 1D, using the Plots.jl with GR as a backend. Basically, I have a matrix where the rows are the solution u at a time instant. What I was trying to do was to plot the ev…

---

## [UnicodePlots multiple plots?](https://discourse.julialang.org/t/unicodeplots-multiple-plots/22063)

<div class="topic-metadata">

**Author:** [@natemcintosh](https://discourse.julialang.org/u/natemcintosh)\
**Replies:** 1\
**Last updated:** [March 19, 2019, 5:17pm UTC](https://discourse.julialang.org/t/unicodeplots-multiple-plots/22063 "2019-03-19T17:17:20Z")

</div>

I been having TONS of fun with UnicodePlots recently. However, when I want to make two plots, one after the other, in a script, only the last is displayed in my REPL. For example, with this code in a .jl file, I call i…

---

## [Moving camera then saving picture in Makie](https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938)

<div class="topic-metadata">

**Author:** [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Replies:** 2\
**Last updated:** [March 16, 2019, 6:24pm UTC](https://discourse.julialang.org/t/moving-camera-then-saving-picture-in-makie/21938 "2019-03-16T18:24:49Z")

</div>

I visualise 3d scenes with Makie. Moving the camera (either with rotate\_cam! or with update\_cam!) only seems to works from the REPL or when saving an animation: as soon as the scene is evaluated, it returns to the origin…

---

## [Makie and colours](https://discourse.julialang.org/t/makie-and-colours/21937)

<div class="topic-metadata">

**Author:** [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Replies:** 6\
**Last updated:** [March 16, 2019, 1:46pm UTC](https://discourse.julialang.org/t/makie-and-colours/21937 "2019-03-16T13:46:47Z")

</div>

I am visualising polyhedra with Makie. However I find that colours are all way too dark, see MWE that displays a cube that should be the brightest shade of yellow, but is not very bright. Moreover, I find that it gets br…

---

## [Plotting a transparent planes/boxes with Makie](https://discourse.julialang.org/t/plotting-a-transparent-planes-boxes-with-makie/21875)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 4:37pm UTC](https://discourse.julialang.org/t/plotting-a-transparent-planes-boxes-with-makie/21875 "2019-03-14T16:37:59Z")

</div>

I’m looking for a way to plot simple planes with Makie. The only solution I found so far is this: using Makie p1 = Point3(0.0, 0.0, 0.0) p2 = Point3(0.0, 1.0, 0.0) p3 = Point3(0.0, 1.0, 1.0) p4 = Point3(0.0, 0.0, 1.0)…

---

## [PyPlot warning?](https://discourse.julialang.org/t/pyplot-warning/21819)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [March 13, 2019, 4:52pm UTC](https://discourse.julialang.org/t/pyplot-warning/21819 "2019-03-13T16:52:16Z")

</div>

I’m not sure whether this is a problem related to my laptop set-up, or a change in Julia… Running IJulia, I want to use the pyplot() back-end to Plots – because it has better LaTeX support than gr(). I get the following…

---

## [How to update a Julia plot without the window grabbing the focus?](https://discourse.julialang.org/t/how-to-update-a-julia-plot-without-the-window-grabbing-the-focus/21558)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 3\
**Last updated:** [March 7, 2019, 8:53am UTC](https://discourse.julialang.org/t/how-to-update-a-julia-plot-without-the-window-grabbing-the-focus/21558 "2019-03-07T08:53:10Z")

</div>

When updating a figure in Julia, how to do it without the plot window grabbing the focus? Let’s say I have the following code: using Plots pyplot() n = 100 x = collect(range(0, pi, length = n)) for i = 1:30 y = …

---

## [Makie hypersphere with radius other than 1?](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460)

<div class="topic-metadata">

**Author:** [@kmhaeren](https://discourse.julialang.org/u/kmhaeren)\
**Replies:** 3\
**Last updated:** [March 5, 2019, 5:12pm UTC](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460 "2019-03-05T17:12:47Z")

</div>

Hi I’m using Makie to display a physics engine, and I’m trying to draw 3D spheres of different radii, however, when I try to display “Sphere(Point3(0),5)” for example, it still shows a sphere with a radius of 1. I look…

---

## [VegaLite rescale data plots](https://discourse.julialang.org/t/vegalite-rescale-data-plots/21143)

<div class="topic-metadata">

**Author:** [@nik.ltin](https://discourse.julialang.org/u/nik.ltin)\
**Replies:** 0\
**Last updated:** [February 24, 2019, 1:32pm UTC](https://discourse.julialang.org/t/vegalite-rescale-data-plots/21143 "2019-02-24T13:32:54Z")

</div>

Hello all, I’m using VegaLite for bar plots with the @vlplot(:bar...) command. I’m looking at a dataset that I’d like to rescale to go from 1 to 100. I tried adding in the command julia\> y={:df1, scale={domain=\[0,100\]…

---

## [VegaLite rescale plots domain](https://discourse.julialang.org/t/vegalite-rescale-plots-domain/21120)

<div class="topic-metadata">

**Author:** [@nik.ltin](https://discourse.julialang.org/u/nik.ltin)\
**Replies:** 0\
**Last updated:** [February 23, 2019, 7:44pm UTC](https://discourse.julialang.org/t/vegalite-rescale-plots-domain/21120 "2019-02-23T19:44:23Z")

</div>

Hello all, I’m using VegaLite for bar plots with the @vlplot(:bar...) command. I’m looking at a dataset that I’d like to rescale to go from 1 to 100. I tried adding in the command y={:df1, scale={domain=\[0,100\], nice=fal…

---

## [Storing mouse click event coordinates in PyPlot window](https://discourse.julialang.org/t/storing-mouse-click-event-coordinates-in-pyplot-window/21117)

<div class="topic-metadata">

**Author:** [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Replies:** 1\
**Last updated:** [February 23, 2019, 9:01pm UTC](https://discourse.julialang.org/t/storing-mouse-click-event-coordinates-in-pyplot-window/21117 "2019-02-23T21:01:58Z")

</div>

I want to get access to the cursor positions within a PyPlot window and store all clicked values into arrays. I was able to print out the x,y values but I failed to store them into arrays. The code first I used is: fu…

---

## [Keyword arguments in PlotRecipes](https://discourse.julialang.org/t/keyword-arguments-in-plotrecipes/20780)

<div class="topic-metadata">

**Author:** [@moesphere](https://discourse.julialang.org/u/moesphere)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 7:45am UTC](https://discourse.julialang.org/t/keyword-arguments-in-plotrecipes/20780 "2019-02-20T07:45:52Z")

</div>

Following minimal example: struct PlotType end @recipe function f(::PlotType; title="Title", ylabel="ylabel") x := \[1,2,3\] y := rand(3,5) end The title is plotted fine, I also can change the title when calling …

---

## [How to embed 2D slices of an array in a 3D plot using plot recipes?](https://discourse.julialang.org/t/how-to-embed-2d-slices-of-an-array-in-a-3d-plot-using-plot-recipes/20857)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [February 18, 2019, 11:49am UTC](https://discourse.julialang.org/t/how-to-embed-2d-slices-of-an-array-in-a-3d-plot-using-plot-recipes/20857 "2019-02-18T11:49:02Z")

</div>

Given a 3D array, I would like to produce the following visualization: The main problem I have is that I don’t know how to embed 2D slices in a 3D plot using plot recipes. Appreciate if you can help, or if you can pr…

---

## [Vline! alters y-axis labels using Plots with GR](https://discourse.julialang.org/t/vline-alters-y-axis-labels-using-plots-with-gr/20918)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 12:43am UTC](https://discourse.julialang.org/t/vline-alters-y-axis-labels-using-plots-with-gr/20918 "2019-02-18T00:43:27Z")

</div>

Hi all, An MWE follows: using Plots dt = \[ today() + Day(10\*n) for n = 1:100 \]; x = randn(100); p = plot(dt, x); savefig(p, "/home/colin/TempPlot/a1.svg"); dtlab = dt\[1:20:100\]; vline!(p, dtlab); savefig(p, "/home/coli…

---

## [Function values under the cursor](https://discourse.julialang.org/t/function-values-under-the-cursor/3469)

<div class="topic-metadata">

**Author:** [@Tulio\_Valentim](https://discourse.julialang.org/u/Tulio_Valentim)\
**Replies:** 4\
**Last updated:** [February 14, 2019, 3:00pm UTC](https://discourse.julialang.org/t/function-values-under-the-cursor/3469 "2019-02-14T15:00:42Z")

</div>

Hi, someone could help me to plot a graph that show the function value under the cursor? For example in the image below if the black point is cursor it will show (-0.5,2) Tks

---

## [How do I tweak spacing in Plots labels?](https://discourse.julialang.org/t/how-do-i-tweak-spacing-in-plots-labels/20316)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 3:18pm UTC](https://discourse.julialang.org/t/how-do-i-tweak-spacing-in-plots-labels/20316 "2019-01-31T15:18:04Z")

</div>

I would like to put the ylabel near the yticks, because the “head” of my Gamma is being “cutted” in GR backend. Is there any option to do that ? using Plots, LaTeXStrings scatter(rand(2000), rand(2000), guidefo…

---

## [How can I change the series order of the legend in Plots?](https://discourse.julialang.org/t/how-can-i-change-the-series-order-of-the-legend-in-plots/20278)

<div class="topic-metadata">

**Author:** [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 9:46pm UTC](https://discourse.julialang.org/t/how-can-i-change-the-series-order-of-the-legend-in-plots/20278 "2019-01-30T21:46:50Z")

</div>

When making stacked bar plots or stacked area plots, the default series order in the legend appears upside-down compared to the order in the plot itself. Example using the groupedbar() recipe provided by StatPlots: usin…

---

## [Controlling the data --\> color gradient mapping in Plots](https://discourse.julialang.org/t/controlling-the-data-color-gradient-mapping-in-plots/20096)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 3\
**Last updated:** [January 25, 2019, 7:31pm UTC](https://discourse.julialang.org/t/controlling-the-data-color-gradient-mapping-in-plots/20096 "2019-01-25T19:31:01Z")

</div>

x = (0:80)/80; y = @.sin(3\*exp(x)); using Plots cg = cgrad(:viridis,range(0,stop=1,length=64)) plot(x,y,line\_z=y,color=cg) What I get (this is GR, but other backends seem to be similar): This is not what I expecte…

---

## [Color choices for graphs?](https://discourse.julialang.org/t/color-choices-for-graphs/19971)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [January 23, 2019, 3:06pm UTC](https://discourse.julialang.org/t/color-choices-for-graphs/19971 "2019-01-23T15:06:32Z")

</div>

I’m looking into presenting som model structures using graphs. Below is an example of a first attempt: My problem is related to choice of colors for ease of readability: Is there some guideline for best choice of li…

---

## [Open Cascade - PythonOCC - 3D modelling](https://discourse.julialang.org/t/open-cascade-pythonocc-3d-modelling/19974)

<div class="topic-metadata">

**Author:** [@josemaria](https://discourse.julialang.org/u/josemaria)\
**Replies:** 0\
**Last updated:** [January 23, 2019, 11:02am UTC](https://discourse.julialang.org/t/open-cascade-pythonocc-3d-modelling/19974 "2019-01-23T11:02:30Z")

</div>

I was wondering if there is something equivalent to pythonooc. It wraps Open Cascade Community Edition. It seems that Open Cascade is what is behind FreeCAD. If there is nothing already done, I wonder if there is someth…

---

## [Error after updating packages](https://discourse.julialang.org/t/error-after-updating-packages/19660)

<div class="topic-metadata">

**Author:** [@muriloasouza](https://discourse.julialang.org/u/muriloasouza)\
**Replies:** 9\
**Last updated:** [January 16, 2019, 9:07am UTC](https://discourse.julialang.org/t/error-after-updating-packages/19660 "2019-01-16T09:07:06Z")

</div>

I got this error today after updating my packages: WARNING: Couldn't initialize gr. (might need to install it?) INFO: To do a standard install of gr, copy and run this: Pkg.add("GR") Pkg.build("GR") ERROR: LoadError…

---

## [ERROR: MethodError: no method matching pin(::String, ::VersionNumber)](https://discourse.julialang.org/t/error-methoderror-no-method-matching-pin-string-versionnumber/19672)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 5\
**Last updated:** [January 16, 2019, 8:57am UTC](https://discourse.julialang.org/t/error-methoderror-no-method-matching-pin-string-versionnumber/19672 "2019-01-16T08:57:58Z")

</div>

I was using Julia 0.7 to install a package JEMSS.jl from this link: https://github.com/uoa-ems-research/JEMSS.jl During the process, I need to use the Julia 0.6 command “Pkg.pin( “GDAL”, v"0.1.2” )" But when I tried i…

---

## [Subplots in Plots.jl with separate legend](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 12\
**Last updated:** [January 15, 2019, 4:59pm UTC](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968 "2019-01-15T16:59:23Z")

</div>

I am plotting 20+ timeseries with various scales from a DataFrame using Plots.jl, separated into subplots because the original plot is too crowded. Everything works nicely, but I would like a separate legend (with only t…

---

## [Plotting .mat data](https://discourse.julialang.org/t/plotting-mat-data/19600)

<div class="topic-metadata">

**Author:** [@svpillai](https://discourse.julialang.org/u/svpillai)\
**Replies:** 6\
**Last updated:** [January 14, 2019, 10:18am UTC](https://discourse.julialang.org/t/plotting-mat-data/19600 "2019-01-14T10:18:50Z")

</div>

I have a .mat file that I’ve opened using Matlab.jl with read\_matfile(filename) (is there a better way/command to load .mat data on to Julia?), and I need to plot certain rows of the .mat file. How do I do so? using Plot…

---

## [Fastest plot backend for Interact + Mux](https://discourse.julialang.org/t/fastest-plot-backend-for-interact-mux/19349)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 13\
**Last updated:** [January 13, 2019, 7:07pm UTC](https://discourse.julialang.org/t/fastest-plot-backend-for-interact-mux/19349 "2019-01-13T19:07:52Z")

</div>

I am experimenting with Interact.jl for teaching (interactively exploring implications of a macroeconomic model). I also have no clue about web technologies. The idea is to have model parameters as sliders, solve and si…

---

## [Does save is not working in Makie?](https://discourse.julialang.org/t/does-save-is-not-working-in-makie/19519)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 1\
**Last updated:** [January 11, 2019, 2:35pm UTC](https://discourse.julialang.org/t/does-save-is-not-working-in-makie/19519 "2019-01-11T14:35:30Z")

</div>

I’ve tried to do a basic example following Makie tutorials using Makie x = rand(10) y = rand(10) colors = rand(10) scene = scatter(x, y, color = colors) Makie.save("plot\_test.png", scene) I can create the scene, but …

---

## [NSException for Pyplot](https://discourse.julialang.org/t/nsexception-for-pyplot/19391)

<div class="topic-metadata">

**Author:** [@ohsonice](https://discourse.julialang.org/u/ohsonice)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 4:36pm UTC](https://discourse.julialang.org/t/nsexception-for-pyplot/19391 "2019-01-09T16:36:04Z")

</div>

I am getting the following exception when attempting to plot using pyplot: julia\> using Plots julia\> pyplot() Plots.PyPlotBackend() julia\> plot(rand(100)) 2019-01-08 10:43:51.574 julia\[90768:45265541\] -\[NSApplication …

---

## [Charts from sysstat data](https://discourse.julialang.org/t/charts-from-sysstat-data/19411)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 4:04am UTC](https://discourse.julialang.org/t/charts-from-sysstat-data/19411 "2019-01-09T04:04:28Z")

</div>

What is a good utility to produce pie charts from CSV files? My first thoughts would be the Queryverse - or shoud I be looking at something else? Specifically I would like to produce pie charts for the sums of differen…

---

## [Problem with Violin and Boxplots ](https://discourse.julialang.org/t/problem-with-violin-and-boxplots/19149)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 3\
**Last updated:** [January 1, 2019, 6:00am UTC](https://discourse.julialang.org/t/problem-with-violin-and-boxplots/19149 "2019-01-01T06:00:21Z")

</div>

I am fairly new to Julia, so I have been working through the Plots tutorial at Tutorial · Plots. I run into a number of problems in the first example under " Using Series Recipes". Specifically, I enter the code provided…

---

## [3D Isosurface](https://discourse.julialang.org/t/3d-isosurface/19042)

<div class="topic-metadata">

**Author:** [@CrocoDuck](https://discourse.julialang.org/u/CrocoDuck)\
**Replies:** 4\
**Last updated:** [December 28, 2018, 7:02pm UTC](https://discourse.julialang.org/t/3d-isosurface/19042 "2018-12-28T19:02:30Z")

</div>

Hi guys! I would like to make nice plots of acoustic modes in a rectangular room by making use of isosurfaces. Below you can see a bunch of examples of what I am aiming for. I did those with Matlab few years ago. I …

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

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