# Visualization

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

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

**Page:** 89

---

## [How to use distance\_transform in Images.jl](https://discourse.julialang.org/t/how-to-use-distance-transform-in-images-jl/18861)

<div class="topic-metadata">

**Author:** [@wrgr](https://discourse.julialang.org/u/wrgr)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 8:21pm UTC](https://discourse.julialang.org/t/how-to-use-distance-transform-in-images-jl/18861 "2018-12-21T20:21:52Z")

</div>

Tried to use distance\_transform(rand(Bool, 500, 500)) from Images.jl, but got MethodError: no method matching distance\_transform(::Array{Bool,2}) Closest candidates are: distance\_transform(!Matched::AbstractArray{Ca…

---

## [Color Cycle Survey](https://discourse.julialang.org/t/color-cycle-survey/18704)

<div class="topic-metadata">

**Author:** [@mpetroff](https://discourse.julialang.org/u/mpetroff)\
**Replies:** 10\
**Last updated:** [December 18, 2018, 11:00am UTC](https://discourse.julialang.org/t/color-cycle-survey/18704 "2018-12-18T11:00:53Z")

</div>

For the past year or so, I’ve been working on techniques for generating visually pleasing colorblind-friendly color cycles, since I find the current Matplotlib default difficult to interpret (and it ends up in many of th…

---

## [Yerror and ribbon not working in polar plots using Plots](https://discourse.julialang.org/t/yerror-and-ribbon-not-working-in-polar-plots-using-plots/18731)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 3:04am UTC](https://discourse.julialang.org/t/yerror-and-ribbon-not-working-in-polar-plots-using-plots/18731 "2018-12-17T03:04:20Z")

</div>

In Plots, the polar projection seems not yet support yerror and ribbon, I am wandering if so, or I just missed something, or there are other way around?

---

## [Drawing animated rectangles, circles, polygons etc...](https://discourse.julialang.org/t/drawing-animated-rectangles-circles-polygons-etc/18689)

<div class="topic-metadata">

**Author:** [@chrisk](https://discourse.julialang.org/u/chrisk)\
**Replies:** 2\
**Last updated:** [December 15, 2018, 11:08pm UTC](https://discourse.julialang.org/t/drawing-animated-rectangles-circles-polygons-etc/18689 "2018-12-15T23:08:21Z")

</div>

Hi, I’m a Julia beginner (I’m using Windows 10) and I’m looking for advice what package would be easy to use for drawing animated vector graphics. Background: I want to experiment with reinforcement learning and want t…

---

## [Displaying plots in VegaLite opens vscode](https://discourse.julialang.org/t/displaying-plots-in-vegalite-opens-vscode/18336)

<div class="topic-metadata">

**Author:** [@Ali\_Vahdati](https://discourse.julialang.org/u/Ali_Vahdati)\
**Replies:** 5\
**Last updated:** [December 6, 2018, 2:57pm UTC](https://discourse.julialang.org/t/displaying-plots-in-vegalite-opens-vscode/18336 "2018-12-06T14:57:50Z")

</div>

I have no idea what configuration is wrong, but when I try to display a simple plot from VegaLite, a new instance of vscode opens. It happens when I do: using VegaLite, VegaDatasets data = dataset("cars") data |\> @vlpl…

---

## [Animation on Julia 1.0.x](https://discourse.julialang.org/t/animation-on-julia-1-0-x/18270)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 18\
**Last updated:** [December 5, 2018, 3:24pm UTC](https://discourse.julialang.org/t/animation-on-julia-1-0-x/18270 "2018-12-05T15:24:48Z")

</div>

I try to reproduce the following two examples in Julia 1.0.2,: using Plots anim = Animation() p = plot(\[sin,cos\], 0, π, size=(300,300)) scatter!(\[0\], \[sin,cos\]) for i in 0:0.1:π p\[3\] = \[i\], \[sin(i)\] p\[4\] = \[i\], …

---

## [How to render multiple windows in Makie.jl?](https://discourse.julialang.org/t/how-to-render-multiple-windows-in-makie-jl/18221)

<div class="topic-metadata">

**Author:** [@NanFangHong](https://discourse.julialang.org/u/NanFangHong)\
**Replies:** 0\
**Last updated:** [December 2, 2018, 3:29pm UTC](https://discourse.julialang.org/t/how-to-render-multiple-windows-in-makie-jl/18221 "2018-12-02T15:29:06Z")

</div>

Hi, may I have your help? How to render multiple windows in Makie.jl?

---

## [No output in Atom plot pane or gui in both julia 0.7 and 1.0](https://discourse.julialang.org/t/no-output-in-atom-plot-pane-or-gui-in-both-julia-0-7-and-1-0/18100)

<div class="topic-metadata">

**Author:** [@martinzh](https://discourse.julialang.org/u/martinzh)\
**Replies:** 9\
**Last updated:** [November 29, 2018, 12:12pm UTC](https://discourse.julialang.org/t/no-output-in-atom-plot-pane-or-gui-in-both-julia-0-7-and-1-0/18100 "2018-11-29T12:12:39Z")

</div>

Hi, with both julia 0.7 and 1.0 I can make graphs from the REPL but whenever I try to do it from Atom, there’s no output in the Plot pane nor I can open the gui windows, neither with GR or PyPlot. However, the graphs ar…

---

## [Fastest way to blit images to a window](https://discourse.julialang.org/t/fastest-way-to-blit-images-to-a-window/1406)

<div class="topic-metadata">

**Author:** [@jtravs](https://discourse.julialang.org/u/jtravs)\
**Replies:** 16\
**Last updated:** [November 27, 2018, 2:32pm UTC](https://discourse.julialang.org/t/fastest-way-to-blit-images-to-a-window/1406 "2018-11-27T14:32:35Z")

</div>

Hi, I’m in the process of writing a laser beam profiler software with Julia. Fo this I am grabbing greyscale images from a scientific camera, that can be up to 4000x3000 pixels, stored as wither UInt8 or UInt16. I now w…

---

## [JuliaBox: Package releases and Plotting problem](https://discourse.julialang.org/t/juliabox-package-releases-and-plotting-problem/18046)

<div class="topic-metadata">

**Author:** [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Replies:** 0\
**Last updated:** [November 27, 2018, 7:20am UTC](https://discourse.julialang.org/t/juliabox-package-releases-and-plotting-problem/18046 "2018-11-27T07:20:59Z")

</div>

Hi I’m not sure where to list this properly, because it started with a plotting problem: using Plots with plotlyjs backend doesn’t seem to work on IJulia anymore. I tried a few things on my side (getting master, trying…

---

## [Time to first plot with Makie too long](https://discourse.julialang.org/t/time-to-first-plot-with-makie-too-long/17947)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [November 24, 2018, 7:48pm UTC](https://discourse.julialang.org/t/time-to-first-plot-with-makie-too-long/17947 "2018-11-24T19:48:15Z")

</div>

I am running the following example using Julia 1.0.2 on a fast Ubuntu quad-core: using Makie using GeometryTypes x = Vec3f0(0); baselen = 0.2f0; dirlen = 1f0 # create an array of differently colored boxes in the direct…

---

## [Plot graphs](https://discourse.julialang.org/t/plot-graphs/17805)

<div class="topic-metadata">

**Author:** [@kirtsar](https://discourse.julialang.org/u/kirtsar)\
**Replies:** 1\
**Last updated:** [November 22, 2018, 2:28pm UTC](https://discourse.julialang.org/t/plot-graphs/17805 "2018-11-22T14:28:06Z")

</div>

Is it possible to plot graphs with VScode? I was trying TikzGraphs and GraphPlot, but none of it works (it actually gives a lot of text in the REPL, but no pictures).

---

## [Dev release: plotty](https://discourse.julialang.org/t/dev-release-plotty/17858)

<div class="topic-metadata">

**Author:** [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Replies:** 0\
**Last updated:** [November 22, 2018, 12:33pm UTC](https://discourse.julialang.org/t/dev-release-plotty/17858 "2018-11-22T12:33:52Z")

</div>

This has been a bit of a toy project of mine for a little while now, and with a few additions and a new version of julia, a dev release couldn’t hurt Plotty\_dev is basically a static html template with a julia data sect…

---

## [Dealing with large numbers of points](https://discourse.julialang.org/t/dealing-with-large-numbers-of-points/17826)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 13\
**Last updated:** [November 22, 2018, 9:16am UTC](https://discourse.julialang.org/t/dealing-with-large-numbers-of-points/17826 "2018-11-22T09:16:35Z")

</div>

I’m trying to use Plots.jl with GR backend to generate a scatter plot with a large number of points. However, 10,000 points fails to generate a plot in the Plots window and Juno generally crashes soon after. Am I doing …

---

## [Challenge: Hopf Fibration using Julia](https://discourse.julialang.org/t/challenge-hopf-fibration-using-julia/17697)

<div class="topic-metadata">

**Author:** [@jandehaan](https://discourse.julialang.org/u/jandehaan)\
**Replies:** 2\
**Last updated:** [November 19, 2018, 11:30am UTC](https://discourse.julialang.org/t/challenge-hopf-fibration-using-julia/17697 "2018-11-19T11:30:07Z")

</div>

If you are looking for a visualization challenge, try visualizing Hopf Fibrations. Niles Johnson was able to do it using the free mathematics software Sage including the Tachyon ray tracer. Visualization - Lecture -…

---

## [Trying to save a gif with Plots.jl results in an error](https://discourse.julialang.org/t/trying-to-save-a-gif-with-plots-jl-results-in-an-error/17620)

<div class="topic-metadata">

**Author:** [@a-berg](https://discourse.julialang.org/u/a-berg)\
**Replies:** 1\
**Last updated:** [November 17, 2018, 10:37am UTC](https://discourse.julialang.org/t/trying-to-save-a-gif-with-plots-jl-results-in-an-error/17620 "2018-11-17T10:37:09Z")

</div>

I’m not very experienced with julia yet and I wanted to create a gif for some animation. The animation is correctly created (using @animate macro) and I have manually checked that the 100 images are indeed created. How…

---

## [Flow "in" a Klein bottle](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 3\
**Last updated:** [November 13, 2018, 6:07pm UTC](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475 "2018-11-13T18:07:04Z")

</div>

Can we make something like this?

---

## [\`scatter\` plots and marker colors -- change?](https://discourse.julialang.org/t/scatter-plots-and-marker-colors-change/17456)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 8\
**Last updated:** [November 13, 2018, 11:57am UTC](https://discourse.julialang.org/t/scatter-plots-and-marker-colors-change/17456 "2018-11-13T11:57:59Z")

</div>

I get this strange warning when using scatter under Julia v. 1.0.2: julia\> scatter(rand(10)) 'c' argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapp ing will have precedence …

---

## [How to draw heatmap with DataFrames](https://discourse.julialang.org/t/how-to-draw-heatmap-with-dataframes/15321)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 3\
**Last updated:** [November 12, 2018, 7:20pm UTC](https://discourse.julialang.org/t/how-to-draw-heatmap-with-dataframes/15321 "2018-11-12T19:20:02Z")

</div>

Let’s say I have a data frame like this, how do I make a heatmap? I’m already using StatPlots so that would be the preferred way. I tried to look up documentation but couldn’t find it… data = DataFrame( src = \["Lo…

---

## [Coloring Different Areas under a Normal Distribution based on X axis](https://discourse.julialang.org/t/coloring-different-areas-under-a-normal-distribution-based-on-x-axis/17412)

<div class="topic-metadata">

**Author:** [@cjkinni](https://discourse.julialang.org/u/cjkinni)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 2:31pm UTC](https://discourse.julialang.org/t/coloring-different-areas-under-a-normal-distribution-based-on-x-axis/17412 "2018-11-12T14:31:51Z")

</div>

I am trying to achieve results like those below. I am able to get a normal distribution that’s somewhat broken up with vertical bars: 𝜇=1500 𝜎=300 plot(Normal(𝜇,𝜎), title="Normal Distribution N($(𝜇),$(𝜎))", lw=3, label…

---

## [Align X axis of heatmap and line plot](https://discourse.julialang.org/t/align-x-axis-of-heatmap-and-line-plot/17421)

<div class="topic-metadata">

**Author:** [@Donut\_Meepo](https://discourse.julialang.org/u/Donut_Meepo)\
**Replies:** 1\
**Last updated:** [November 12, 2018, 6:58am UTC](https://discourse.julialang.org/t/align-x-axis-of-heatmap-and-line-plot/17421 "2018-11-12T06:58:36Z")

</div>

Hi, I am trying to make subplots of heatmap and line plot. I want to get a square and larger heatmap on top of the thin line plot that are aligned with x axis. The image I attached is what I can get so far. I was tryin…

---

## [Makie: rotating HyperRectangles?](https://discourse.julialang.org/t/makie-rotating-hyperrectangles/17194)

<div class="topic-metadata">

**Author:** [@kmhaeren](https://discourse.julialang.org/u/kmhaeren)\
**Replies:** 5\
**Last updated:** [November 8, 2018, 5:36pm UTC](https://discourse.julialang.org/t/makie-rotating-hyperrectangles/17194 "2018-11-08T17:36:21Z")

</div>

Hi For my masters thesis I’m trying to write a very basic physics engine, and since Makie is the only package that seems to do graphics in Julia, I want to use it to handle the visualisation of simple moving objects i…

---

## [Plotting Phase Portrait](https://discourse.julialang.org/t/plotting-phase-portrait/17250)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [November 7, 2018, 2:24pm UTC](https://discourse.julialang.org/t/plotting-phase-portrait/17250 "2018-11-07T14:24:39Z")

</div>

Give I have some function (two dimensional), representing some differential equation. How do I point a corresponding phase portrait? (in each point in some grid, plot an arrow corresponding to the direction of movement …

---

## [How to draw a rectangular region with Plots.jl?](https://discourse.julialang.org/t/how-to-draw-a-rectangular-region-with-plots-jl/1719)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [November 1, 2018, 8:39pm UTC](https://discourse.julialang.org/t/how-to-draw-a-rectangular-region-with-plots-jl/1719 "2018-11-01T20:39:44Z")

</div>

For an example in PyPlot: http://matthiaseisen.com/pp/patterns/p0203/

---

## [PGFPlotsX and color map](https://discourse.julialang.org/t/pgfplotsx-and-color-map/16868)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [October 28, 2018, 5:08pm UTC](https://discourse.julialang.org/t/pgfplotsx-and-color-map/16868 "2018-10-28T17:08:08Z")

</div>

I want to use a different color map than “hot”. When I try to use the “viridis” color map, I get an error. It isn’t clear to me why it should be so, since the latex code matches what I can find in the PGF manual. @pgf …

---

## [Gadfly SVGs render without color](https://discourse.julialang.org/t/gadfly-svgs-render-without-color/16804)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 8\
**Last updated:** [October 28, 2018, 2:08pm UTC](https://discourse.julialang.org/t/gadfly-svgs-render-without-color/16804 "2018-10-28T14:08:27Z")

</div>

I just updated some code to work with v1.0 of Julia and Gadfly, and the SVG output from Gadfly that used to work fine with MS Office now renders without color, the svg editor Inkscape also renders it with no color. usin…

---

## [Interact.jl: plot as widget?](https://discourse.julialang.org/t/interact-jl-plot-as-widget/16736)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 3\
**Last updated:** [October 27, 2018, 2:34pm UTC](https://discourse.julialang.org/t/interact-jl-plot-as-widget/16736 "2018-10-27T14:34:02Z")

</div>

with interact.jl one can create widgets which can then change a plot. i want to click on a plot, get the x,y coordinates of where i clicked, and then generate/modify a second plot. immerse.jl could probably do this via…

---

## [ImageView update image](https://discourse.julialang.org/t/imageview-update-image/16737)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 3\
**Last updated:** [October 25, 2018, 7:39pm UTC](https://discourse.julialang.org/t/imageview-update-image/16737 "2018-10-25T19:39:50Z")

</div>

I have an img that I display using ImageView.imshow(img). When img is modified, I would like to tell imshow to update the image. A thread on discourse suggest to call again imshow as follows. canvas = imshow(img)\[“gui”…

---

## [Jupyter: not work PlotlyJS, Gadfly, and GR displays only byte code](https://discourse.julialang.org/t/jupyter-not-work-plotlyjs-gadfly-and-gr-displays-only-byte-code/16747)

<div class="topic-metadata">

**Author:** [@YermolenkoIgor](https://discourse.julialang.org/u/YermolenkoIgor)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 4:32pm UTC](https://discourse.julialang.org/t/jupyter-not-work-plotlyjs-gadfly-and-gr-displays-only-byte-code/16747 "2018-10-24T16:32:57Z")

</div>

using Plots gr(html\_output\_format=:png) plot(1:2,1:2) base64 binary data: b3BlbjogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQpvcGVuOiBObyBzdWNoIGZpbGUgb3IgZGlyZWN0b3J5CkdLUzogZmlsZSBvcGVuIGVycm9yIChDOlxVc2Vyc1yIo67g7FwuanVsaWFcc…

---

## [ImageView: display to true resolution](https://discourse.julialang.org/t/imageview-display-to-true-resolution/16646)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 3\
**Last updated:** [October 23, 2018, 2:27pm UTC](https://discourse.julialang.org/t/imageview-display-to-true-resolution/16646 "2018-10-23T14:27:19Z")

</div>

I am using julia v1.0.1 with ImageView v0.8. If I use imshow(image) with an image given by a 1000x1000 array, the image is displayed in a 1000x1000 window. Unfortunately, the image is scaled down in order to leave a ma…

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

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