# Visualization

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

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

**Page:** 82

---

## [Interactive Vegalite in Jupyter lab](https://discourse.julialang.org/t/interactive-vegalite-in-jupyter-lab/33771)

<div class="topic-metadata">

**Author:** [@darwindarak](https://discourse.julialang.org/u/darwindarak)\
**Replies:** 2\
**Last updated:** [January 25, 2020, 2:48am UTC](https://discourse.julialang.org/t/interactive-vegalite-in-jupyter-lab/33771 "2020-01-25T02:48:52Z")

</div>

Hi all, I’m having some problems getting interactive plots (simple tooltip) to show up inline in a notebook. The docs say that Jupyter lab should already have the capability, but I can only get it to work if I save the …

---

## [Interpolated heatmap with contour line in VegaLite.jl](https://discourse.julialang.org/t/interpolated-heatmap-with-contour-line-in-vegalite-jl/33559)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 1\
**Last updated:** [January 22, 2020, 5:48pm UTC](https://discourse.julialang.org/t/interpolated-heatmap-with-contour-line-in-vegalite-jl/33559 "2020-01-22T17:48:38Z")

</div>

Looking to generate a continous heatmap of data, with a contour line, something line the following plot: Example data if someone wants to play with it: delay,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7…

---

## [Jupyter notebook: Use pgf code instead of pdf/svg image for export to latex](https://discourse.julialang.org/t/jupyter-notebook-use-pgf-code-instead-of-pdf-svg-image-for-export-to-latex/33344)

<div class="topic-metadata">

**Author:** [@karlroyen](https://discourse.julialang.org/u/karlroyen)\
**Replies:** 11\
**Last updated:** [January 20, 2020, 9:58am UTC](https://discourse.julialang.org/t/jupyter-notebook-use-pgf-code-instead-of-pdf-svg-image-for-export-to-latex/33344 "2020-01-20T09:58:00Z")

</div>

When displaying DataFrames in a Jupyter notebook they are nicely rendered using html. When you export the notebook to latex they are nicely exported as latex code creating that table. Is it possible to have the same fun…

---

## [How to redraw a subplot instead of overlaying, GR](https://discourse.julialang.org/t/how-to-redraw-a-subplot-instead-of-overlaying-gr/18473)

<div class="topic-metadata">

**Author:** [@Donut\_Meepo](https://discourse.julialang.org/u/Donut_Meepo)\
**Replies:** 3\
**Last updated:** [January 16, 2020, 4:55pm UTC](https://discourse.julialang.org/t/how-to-redraw-a-subplot-instead-of-overlaying-gr/18473 "2020-01-16T16:55:39Z")

</div>

Hi, I am trying to fill the subplots of a layout using GR backend layout = @layout \[grid(1,2); grid(1,2); grid(1,1)\]; plot(layout=layout) #draw at position2 plot!(1:10, rand(10), subplot=2) #want to redraw instead of o…

---

## [GR.jl: Change backgroundcolor of savefig() image](https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382)

<div class="topic-metadata">

**Author:** [@al314](https://discourse.julialang.org/u/al314)\
**Replies:** 2\
**Last updated:** [January 15, 2020, 10:25am UTC](https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382 "2020-01-15T10:25:20Z")

</div>

Hi all, The script using GR plot(randn(199)) savefig("./test.PNG") produces a PNG picture with a transparent background. How to fix this and make it for example white? Thanks.

---

## [Vega-Lite width and height in heatmap in Juno sometimes doesn't work!](https://discourse.julialang.org/t/vega-lite-width-and-height-in-heatmap-in-juno-sometimes-doesnt-work/33262)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 8\
**Last updated:** [January 13, 2020, 10:57pm UTC](https://discourse.julialang.org/t/vega-lite-width-and-height-in-heatmap-in-juno-sometimes-doesnt-work/33262 "2020-01-13T22:57:15Z")

</div>

Hi, I tested the heatmap samples from the Vega-Lite.jl, such as, d=60 x = \[j for i in -d:d, j in -d:d\] y = \[i for i in -d:d, j in -d:d\] z = x.^2 .+ y.^2 data = DataFrame(x=vec(x'),y=vec(y'),z=vec(z')) data |\> @vlplot(…

---

## [Morphing algorithm in Julia?](https://discourse.julialang.org/t/morphing-algorithm-in-julia/33235)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 12:03pm UTC](https://discourse.julialang.org/t/morphing-algorithm-in-julia/33235 "2020-01-11T12:03:37Z")

</div>

Hi, I wonder if it already exists a Julia tool to generate pretty transitions between different images. If not, I could try to translate existing implementations from other languages. Any hint or starting points ? La…

---

## [How to scatter plot in Makie with custom marker shape](https://discourse.julialang.org/t/how-to-scatter-plot-in-makie-with-custom-marker-shape/33224)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 0\
**Last updated:** [January 11, 2020, 1:10am UTC](https://discourse.julialang.org/t/how-to-scatter-plot-in-makie-with-custom-marker-shape/33224 "2020-01-11T01:10:22Z")

</div>

I see Plots support custom shape(defined by vertices) as marker, but how to do this in Makie.

---

## [Animations - formats other than GIF](https://discourse.julialang.org/t/animations-formats-other-than-gif/32931)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 9:57pm UTC](https://discourse.julialang.org/t/animations-formats-other-than-gif/32931 "2020-01-08T21:57:40Z")

</div>

I’m currently using Plots to generate graphics, including some animations. The docs make it easy to create animated GIFs but for my purposes I’d prefer an alternate output format such as .mov Any tips or suggestions on…

---

## [VegaLite.jl: size/resolution of pdf output](https://discourse.julialang.org/t/vegalite-jl-size-resolution-of-pdf-output/33021)

<div class="topic-metadata">

**Author:** [@BenjaminBorn](https://discourse.julialang.org/u/BenjaminBorn)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 9:08pm UTC](https://discourse.julialang.org/t/vegalite-jl-size-resolution-of-pdf-output/33021 "2020-01-08T21:08:47Z")

</div>

Is there a way to specify with VegaLite (or maybe other packages) the resolution (or file size) of the pdf output? My goal is to use the pdf figures in a LaTeX document and because I have many figures and each is quite l…

---

## [WebIO not detected. (using Interact)](https://discourse.julialang.org/t/webio-not-detected-using-interact/33117)

<div class="topic-metadata">

**Author:** [@Simplex](https://discourse.julialang.org/u/Simplex)\
**Replies:** 0\
**Last updated:** [January 8, 2020, 8:04pm UTC](https://discourse.julialang.org/t/webio-not-detected-using-interact/33117 "2020-01-08T20:04:00Z")

</div>

I’ve an error when I use Interact. I use Anaconda. I’ve try a lot of things but never works. Thanks for your help ! using Interact @manipulate for i=1:10 @show i end

---

## [Compose.jl text error](https://discourse.julialang.org/t/compose-jl-text-error/33105)

<div class="topic-metadata">

**Author:** [@Simplex](https://discourse.julialang.org/u/Simplex)\
**Replies:** 4\
**Last updated:** [January 8, 2020, 7:25pm UTC](https://discourse.julialang.org/t/compose-jl-text-error/33105 "2020-01-08T19:25:58Z")

</div>

I try to use compose.jl to represent a network. But I also want to write text next to it but I have an error using text. I also tried to fix the network to make it not move at each iteration but it didn’t work. Thanks …

---

## [Vegalite.jl; simple grouped bar chart](https://discourse.julialang.org/t/vegalite-jl-simple-grouped-bar-chart/32702)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 5\
**Last updated:** [January 4, 2020, 2:00pm UTC](https://discourse.julialang.org/t/vegalite-jl-simple-grouped-bar-chart/32702 "2020-01-04T14:00:38Z")

</div>

I’ve been fighting with this occasionally, and haven’t gotten it to work. I want to make a simple grouped bar chart out of a simple DataFrame, but no example I’ve seen that just quickly gets to the point. Suppose it’s a…

---

## [3D plots -- possible to change view-point?](https://discourse.julialang.org/t/3d-plots-possible-to-change-view-point/10155)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 10\
**Last updated:** [January 3, 2020, 11:14pm UTC](https://discourse.julialang.org/t/3d-plots-possible-to-change-view-point/10155 "2020-01-03T23:14:03Z")

</div>

I’m doing a 3D path plot – it looks ok, but I think it would be possible to get a better 3D feeling with a modified view-point (3D plot with time as parameter, starting at turquois and ending in gold…): Question: D…

---

## [Fetch images from a NOIR camera on a Raspberry Pi](https://discourse.julialang.org/t/fetch-images-from-a-noir-camera-on-a-raspberry-pi/31054)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 2:17pm UTC](https://discourse.julialang.org/t/fetch-images-from-a-noir-camera-on-a-raspberry-pi/31054 "2019-12-27T14:17:09Z")

</div>

The title… Does anyone know how I can grab images from a NOIR camera on an RPI?

---

## [Histogram bars become line when many observations?](https://discourse.julialang.org/t/histogram-bars-become-line-when-many-observations/32639)

<div class="topic-metadata">

**Author:** [@pearlzli](https://discourse.julialang.org/u/pearlzli)\
**Replies:** 6\
**Last updated:** [December 27, 2019, 1:26pm UTC](https://discourse.julialang.org/t/histogram-bars-become-line-when-many-observations/32639 "2019-12-27T13:26:46Z")

</div>

I noticed that when there are a lot of (e.g. 10 million) observations, histogram produces a line plot instead of a bar plot: using Distributions, StatsPlots x = rand(Normal(), 1\_000\_000) histogram(x, bins = -5:0.2:5, la…

---

## [VegaLite.jl; what needs doing?](https://discourse.julialang.org/t/vegalite-jl-what-needs-doing/31940)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 12\
**Last updated:** [December 26, 2019, 1:24pm UTC](https://discourse.julialang.org/t/vegalite-jl-what-needs-doing/31940 "2019-12-26T13:24:50Z")

</div>

I do not consider myself great at VegaLite.jl and I don’t know all its elements. I am still getting used to it more and more and don’t always have much time. Still I am interested in possibly helping with this project. I…

---

## [Plotting differential equation solutions](https://discourse.julialang.org/t/plotting-differential-equation-solutions/32705)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 1\
**Last updated:** [December 26, 2019, 12:29pm UTC](https://discourse.julialang.org/t/plotting-differential-equation-solutions/32705 "2019-12-26T12:29:21Z")

</div>

The following code runs really slowly, because it redraws the graph every update, instead of incrementally. There must be some method for incremental diagramming, but I can’t find any. There should be a way to plot this…

---

## [Plotting vector fields](https://discourse.julialang.org/t/plotting-vector-fields/32704)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 5\
**Last updated:** [December 26, 2019, 8:27am UTC](https://discourse.julialang.org/t/plotting-vector-fields/32704 "2019-12-26T08:27:03Z")

</div>

I wrote this down because it is weirdly hard to find anything on this topic. To plot vector fields, use the undocumented (as of 2019 Dec 26) quiver function. Quiver is a strange name, coming from the military: a “quiver…

---

## [VegaLite.jl; sorting problematic](https://discourse.julialang.org/t/vegalite-jl-sorting-problematic/31939)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 4\
**Last updated:** [December 25, 2019, 8:47pm UTC](https://discourse.julialang.org/t/vegalite-jl-sorting-problematic/31939 "2019-12-25T20:47:51Z")

</div>

I looked on the site to translate some things to see hoe and if it worked: Sorting | Vega-Lite If I want to use for some channel (y) the x channel, then taking their example doesn’t work and gives no result, unless I us…

---

## [Quick question on colors in a contour plot](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 4\
**Last updated:** [December 20, 2019, 2:09pm UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493 "2019-12-20T14:09:13Z")

</div>

Hi, I’m making a contour plot using something like using Plots p1 = plot(xoffsets, zerrs, out, st=:contour, levels=0.0:0.05:1.00) The plot works but I want to change the color series (the default colors for values nea…

---

## [Is it possible to format axis labels as a currency in Plots.jl](https://discourse.julialang.org/t/is-it-possible-to-format-axis-labels-as-a-currency-in-plots-jl/32408)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 1\
**Last updated:** [December 17, 2019, 9:42pm UTC](https://discourse.julialang.org/t/is-it-possible-to-format-axis-labels-as-a-currency-in-plots-jl/32408 "2019-12-17T21:42:26Z")

</div>

I saw an online discussion of formatters from 2016 but didn’t see anything in the package.

---

## [When are round brackets required for VegaLite?](https://discourse.julialang.org/t/when-are-round-brackets-required-for-vegalite/32401)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 3\
**Last updated:** [December 17, 2019, 8:07pm UTC](https://discourse.julialang.org/t/when-are-round-brackets-required-for-vegalite/32401 "2019-12-17T20:07:23Z")

</div>

In this example, why are the brackets ( and ) needed to surround the extra @vlplot commands? using VegaDatasets dataset("weather.csv") |\> @vlplot(repeat={column=\[:temp\_max,:precipitation,:wind\]}) + ( @vlplot() + …

---

## [Plotlyjs.jl - generate composite figure with violin and scatter](https://discourse.julialang.org/t/plotlyjs-jl-generate-composite-figure-with-violin-and-scatter/32402)

<div class="topic-metadata">

**Author:** [@josephmarturano](https://discourse.julialang.org/u/josephmarturano)\
**Replies:** 0\
**Last updated:** [December 17, 2019, 7:41pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-generate-composite-figure-with-violin-and-scatter/32402 "2019-12-17T19:41:22Z")

</div>

I would like to use PlotlyJS.jl to generate a composite figure with a violin and scatterplot, where the scatterplot is overlayed on top of the violin and is actually the mean ± 95% confidence interval of the mean. My cur…

---

## [VegaLite throws error on faceting plots](https://discourse.julialang.org/t/vegalite-throws-error-on-faceting-plots/32396)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 2\
**Last updated:** [December 17, 2019, 7:30pm UTC](https://discourse.julialang.org/t/vegalite-throws-error-on-faceting-plots/32396 "2019-12-17T19:30:02Z")

</div>

The following code plots data on a single plot. The data is melted data with column names Symbol\[:variable, :value, :time\]. I particularly want lines and points for each dataset… I know I can used filled=true but I am a…

---

## [Make an animation fade](https://discourse.julialang.org/t/make-an-animation-fade/32192)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [December 16, 2019, 4:30pm UTC](https://discourse.julialang.org/t/make-an-animation-fade/32192 "2019-12-16T16:30:22Z")

</div>

I have managed to create an animation object, either through: anim\_ode = animate(ode\_sol\_1,kwargs...) #using a solution of a differential equation. anim\_macro = @animate for t\_end in 0.:45 plot(0.:0.1:t\_end,t-\>(sin(…

---

## [Displaying two animations simultaneously](https://discourse.julialang.org/t/displaying-two-animations-simultaneously/32191)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [December 16, 2019, 4:27pm UTC](https://discourse.julialang.org/t/displaying-two-animations-simultaneously/32191 "2019-12-16T16:27:53Z")

</div>

I have managed to create two animation objects, is there an easy way to display these simultaneously? either with animation object created through differential equations solutions anim1 = animate(ode\_sol\_1,kwargs...) a…

---

## [Issues with PGFPlotsX / PGFPlots](https://discourse.julialang.org/t/issues-with-pgfplotsx-pgfplots/32083)

<div class="topic-metadata">

**Author:** [@ASF](https://discourse.julialang.org/u/ASF)\
**Replies:** 15\
**Last updated:** [December 12, 2019, 9:05am UTC](https://discourse.julialang.org/t/issues-with-pgfplotsx-pgfplots/32083 "2019-12-12T09:05:51Z")

</div>

I’m trying to recreate this graph using PGFPlotsX but i cannot get it to render an image. I have pdf2svg, imagemagick and latex installed.

---

## [Illustrating a point from a function in p-dimensional space](https://discourse.julialang.org/t/illustrating-a-point-from-a-function-in-p-dimensional-space/31875)

<div class="topic-metadata">

**Author:** [@taqtiqa-mark](https://discourse.julialang.org/u/taqtiqa-mark)\
**Replies:** 7\
**Last updated:** [December 10, 2019, 8:41am UTC](https://discourse.julialang.org/t/illustrating-a-point-from-a-function-in-p-dimensional-space/31875 "2019-12-10T08:41:13Z")

</div>

Are there any ‘pre-built’ utilities for plotting/illustrating a point in p-dimensional space? Specifically, the value returned by a function with p-parameters. I’ve hand sketched an illustration of the point in terms o…

---

## [Plot Labels](https://discourse.julialang.org/t/plot-labels/32019)

<div class="topic-metadata">

**Author:** [@martingalemeasure](https://discourse.julialang.org/u/martingalemeasure)\
**Replies:** 3\
**Last updated:** [December 8, 2019, 6:18pm UTC](https://discourse.julialang.org/t/plot-labels/32019 "2019-12-08T18:18:46Z")

</div>

When I run plot(\[1,2,3\], labels=\["abc"\]) The chart shows a legend with — \[“abc”\] instead of — abc.

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

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