# Visualization

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

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

**Page:** 87

---

## [Plots: adding to plot doesn't preserve series style](https://discourse.julialang.org/t/plots-adding-to-plot-doesnt-preserve-series-style/23417)

<div class="topic-metadata">

**Author:** [@PeteS](https://discourse.julialang.org/u/PeteS)\
**Replies:** 0\
**Last updated:** [April 22, 2019, 6:41pm UTC](https://discourse.julialang.org/t/plots-adding-to-plot-doesnt-preserve-series-style/23417 "2019-04-22T18:41:46Z")

</div>

Hello, new to Julia so I may have missed something here. I’m creating a line plot, setting the style as step, then adding points in a loop … to mimic the output of a simulation. When the points are added the style reve…

---

## [Problems to close plots with StatsPlots library](https://discourse.julialang.org/t/problems-to-close-plots-with-statsplots-library/23350)

<div class="topic-metadata">

**Author:** [@Alessandro\_Vivas](https://discourse.julialang.org/u/Alessandro_Vivas)\
**Replies:** 2\
**Last updated:** [April 21, 2019, 12:39pm UTC](https://discourse.julialang.org/t/problems-to-close-plots-with-statsplots-library/23350 "2019-04-21T12:39:57Z")

</div>

I am using the StatsPlots library but the plots are getting overwritten. I tried to use clf() function but doen’t work. x=vcat(V\[:D1\], V\[:D2\], V\[:D3\] ,V\[:D4\], V\[:D5\] ,V\[:D6\]) p1=StatsPlots.ea\_histogram(x,title=“NumOcor…

---

## [How to use "plotyy" for showing several sets of graphs in one plot](https://discourse.julialang.org/t/how-to-use-plotyy-for-showing-several-sets-of-graphs-in-one-plot/23204)

<div class="topic-metadata">

**Author:** [@mirtah](https://discourse.julialang.org/u/mirtah)\
**Replies:** 3\
**Last updated:** [April 16, 2019, 2:58pm UTC](https://discourse.julialang.org/t/how-to-use-plotyy-for-showing-several-sets-of-graphs-in-one-plot/23204 "2019-04-16T14:58:02Z")

</div>

Dear all. I would like to know how to use “plotyy” for showing several sets of graphs in one plot. Thank you very much Best regards using PyPlot,SetPyPlot plotyy(A1, B1, C1, D1) plotyy(A2, B2, C2, D2) plotyy(A3, B…

---

## [StatsPlots - trying to extend boxplot](https://discourse.julialang.org/t/statsplots-trying-to-extend-boxplot/23190)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 3\
**Last updated:** [April 16, 2019, 2:09pm UTC](https://discourse.julialang.org/t/statsplots-trying-to-extend-boxplot/23190 "2019-04-16T14:09:12Z")

</div>

I’m trying to extend boxplot to show all individual datapoints. However, I can’t seem to get Julia to use the local development files. I’ve cloned StatsPlots locally, opened the folder in Juno, used \]activate . followed…

---

## [Turtle graphics TUI or GUI](https://discourse.julialang.org/t/turtle-graphics-tui-or-gui/23177)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 4\
**Last updated:** [April 16, 2019, 9:08am UTC](https://discourse.julialang.org/t/turtle-graphics-tui-or-gui/23177 "2019-04-16T09:08:16Z")

</div>

What julia packages provide a turtle graphics terminal / graphical user interface for drawing?

---

## [Makie object management / scene refresh](https://discourse.julialang.org/t/makie-object-management-scene-refresh/15526)

<div class="topic-metadata">

**Author:** [@jac299792458](https://discourse.julialang.org/u/jac299792458)\
**Replies:** 7\
**Last updated:** [April 16, 2019, 12:28am UTC](https://discourse.julialang.org/t/makie-object-management-scene-refresh/15526 "2019-04-16T00:28:42Z")

</div>

Hi all (@sdanisch :stuck\_out\_tongue\_winking\_eye: ), I have an existing scene, rendered to the screen, containing a DAG. As the execution of the Julia script progresses, the DAG changes. nodes are added, labels are mov…

---

## [Plots: gr(), after savefig() plots become ugly](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591)

<div class="topic-metadata">

**Author:** [@davide](https://discourse.julialang.org/u/davide)\
**Replies:** 4\
**Last updated:** [April 15, 2019, 9:06am UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591 "2019-04-15T09:06:16Z")

</div>

Using Plots, when I plot with the gr() backend I get a nice graph (in its own window). The savefig() command closes that window; after that, next plots will be displayed in a new window, but with ugly graphics (and no tr…

---

## [Current state of the relationship between Plots and Makie](https://discourse.julialang.org/t/current-state-of-the-relationship-between-plots-and-makie/20607)

<div class="topic-metadata">

**Author:** [@ValdarT](https://discourse.julialang.org/u/ValdarT)\
**Replies:** 4\
**Last updated:** [April 14, 2019, 7:48pm UTC](https://discourse.julialang.org/t/current-state-of-the-relationship-between-plots-and-makie/20607 "2019-04-14T19:48:32Z")

</div>

There was a plan that Makie should eventually replace (or merge with) Plots. I would appreciate if someone in the know would give an update on the current state of affairs regarding this.

---

## [How to change the background color in GR?](https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776)

<div class="topic-metadata">

**Author:** [@jarmstrong](https://discourse.julialang.org/u/jarmstrong)\
**Replies:** 2\
**Last updated:** [April 13, 2019, 4:22pm UTC](https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776 "2019-04-13T16:22:19Z")

</div>

I use GR as a quick plotting back-end, as it’s faster than loading the Plots package. Can anyone tell me how to change the default background color of GR plots from transparent to white? (Ideally permanently). I usually…

---

## [Help changing the visualization of my figures](https://discourse.julialang.org/t/help-changing-the-visualization-of-my-figures/22994)

<div class="topic-metadata">

**Author:** [@muriloasouza](https://discourse.julialang.org/u/muriloasouza)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 3:33pm UTC](https://discourse.julialang.org/t/help-changing-the-visualization-of-my-figures/22994 "2019-04-10T15:33:29Z")

</div>

Hello, i’m ploting these two figures: Using this code: using StatPlots Nt = 33; DHTvI = \[0.948922; 1.84699; 2.33009; 2.82551; 3.35778; 4.14989; 4.70336; 5.57; 6.16913; 6.5514; 6.5514; 2.27957; 2.88751; 3.20105; 3.…

---

## [Animation using quiver](https://discourse.julialang.org/t/animation-using-quiver/22986)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 4:30am UTC](https://discourse.julialang.org/t/animation-using-quiver/22986 "2019-04-10T04:30:11Z")

</div>

I am trying to animate the flow of vectors using quiver. However, I am not able to successfully generate what I am looking for. I use the following code p = quiver(zeros(N), zeros(N), gradient=(zeros(N),zeros(N))) anim …

---

## [Plots: Border without axes](https://discourse.julialang.org/t/plots-border-without-axes/22983)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 1:31am UTC](https://discourse.julialang.org/t/plots-border-without-axes/22983 "2019-04-10T01:31:52Z")

</div>

The Plots framestyle attribute allows various combinations of borders, except they depend on the axes being visible it seems. What attributes would allow me to have a border but no tick marks or numbers?

---

## [Pyplot: how to change the marker color in a plot?](https://discourse.julialang.org/t/pyplot-how-to-change-the-marker-color-in-a-plot/22599)

<div class="topic-metadata">

**Author:** [@ale](https://discourse.julialang.org/u/ale)\
**Replies:** 3\
**Last updated:** [April 7, 2019, 5:28pm UTC](https://discourse.julialang.org/t/pyplot-how-to-change-the-marker-color-in-a-plot/22599 "2019-04-07T17:28:19Z")

</div>

Hi, I am trying to plot two curves in the same plot by using pyplot. I would appreciate if the 2 different curves had different colors. When it comes to the line, I managed to change it from the default blue color to e…

---

## [pycall matplotlib non-blocking plot?](https://discourse.julialang.org/t/pycall-matplotlib-non-blocking-plot/22876)

<div class="topic-metadata">

**Author:** [@KestutisMa](https://discourse.julialang.org/u/KestutisMa)\
**Replies:** 3\
**Last updated:** [April 7, 2019, 5:08pm UTC](https://discourse.julialang.org/t/pycall-matplotlib-non-blocking-plot/22876 "2019-04-07T17:08:21Z")

</div>

Hello, I am wondering how to do non-blocking plot: using PyCall; plt = pyimport("matplotlib.pyplot"); plt.plot(\[1,2\]); plt.show() shows plot window, but Julia is blocked, till I close plot window; plt.show(block = fals…

---

## [Plotting multiple points at every instance](https://discourse.julialang.org/t/plotting-multiple-points-at-every-instance/22814)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 6\
**Last updated:** [April 6, 2019, 2:30pm UTC](https://discourse.julialang.org/t/plotting-multiple-points-at-every-instance/22814 "2019-04-06T14:30:53Z")

</div>

I am trying to plot the results of my Monte-Carlo simulation. I have data of the following form, where each row corresponds to a one-time instance. b1 500-element Array{Array{Float64,1},1}: \[115.0\] \[112.0, 113.…

---

## [Error using Plot in Julia](https://discourse.julialang.org/t/error-using-plot-in-julia/22809)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 8:24pm UTC](https://discourse.julialang.org/t/error-using-plot-in-julia/22809 "2019-04-05T20:24:10Z")

</div>

I get an error every time I try plotting in Julia. The code I have been using to generate the histograms is as below: using StatsBase using Plots a = reshape(intl,(500\*100)) ; plt1 = fit(Histogram,a,30:10:150) ; plo…

---

## [Setting the zcolor palette on a single plot (Plots.jl with pyplot)](https://discourse.julialang.org/t/setting-the-zcolor-palette-on-a-single-plot-plots-jl-with-pyplot/22713)

<div class="topic-metadata">

**Author:** [@getzze](https://discourse.julialang.org/u/getzze)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 1:44pm UTC](https://discourse.julialang.org/t/setting-the-zcolor-palette-on-a-single-plot-plots-jl-with-pyplot/22713 "2019-04-04T13:44:06Z")

</div>

I am trying using pyplot backend with Plots.jl and to change the zcolor scheme (from the default :viridis to :balance for instance) for one particular figure. It is working with the gr backend but giving an error with py…

---

## [How to save a heatmap as a png?](https://discourse.julialang.org/t/how-to-save-a-heatmap-as-a-png/22738)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 5\
**Last updated:** [April 4, 2019, 11:54am UTC](https://discourse.julialang.org/t/how-to-save-a-heatmap-as-a-png/22738 "2019-04-04T11:54:34Z")

</div>

I can plot a matrix as a heatmap and I can even choose my own colormap. But how can I save just the heatmap (not the plot) as a png-file? For example: using Plots gr() xs = range(-1, 1, length=30) ys = range(-1, 1, len…

---

## [Problem with an observable array of varying length in Makie.jl](https://discourse.julialang.org/t/problem-with-an-observable-array-of-varying-length-in-makie-jl/22638)

<div class="topic-metadata">

**Author:** [@skarp](https://discourse.julialang.org/u/skarp)\
**Replies:** 3\
**Last updated:** [April 2, 2019, 4:08pm UTC](https://discourse.julialang.org/t/problem-with-an-observable-array-of-varying-length-in-makie-jl/22638 "2019-04-02T16:08:11Z")

</div>

Hello. I am facing a problem with Observables (of varying length) in Makie.jl. The problem can be summarised to the following minimal example: using Makie #AbstractPlotting.inline!(true) # Uncomment if using Atom and J…

---

## [Plots.jl add colorbar when plotting Shape](https://discourse.julialang.org/t/plots-jl-add-colorbar-when-plotting-shape/22544)

<div class="topic-metadata">

**Author:** [@andferrari](https://discourse.julialang.org/u/andferrari)\
**Replies:** 4\
**Last updated:** [March 31, 2019, 6:10pm UTC](https://discourse.julialang.org/t/plots-jl-add-colorbar-when-plotting-shape/22544 "2019-03-31T18:10:03Z")

</div>

I am plotting in the same plot multiple Shape(), each with a different fill color. How can I add a colorbar for these colors to the plot ?

---

## [Using Interact just dumps html / css to Jupyter notebook](https://discourse.julialang.org/t/using-interact-just-dumps-html-css-to-jupyter-notebook/22411)

<div class="topic-metadata">

**Author:** [@bjenkinsgit](https://discourse.julialang.org/u/bjenkinsgit)\
**Replies:** 1\
**Last updated:** [March 28, 2019, 1:52pm UTC](https://discourse.julialang.org/t/using-interact-just-dumps-html-css-to-jupyter-notebook/22411 "2019-03-28T13:52:48Z")

</div>

pkg status–\> Julia 1.1.0, Interact 0.10.0, IJulia 0.18.0 If I try to do anything with Interact in a IJulia notebook, all I get is html / css dumped to the screen, NOT its interpretation into an HTML widget. What am I m…

---

## [StatsPlots @df macro with args/kwargs](https://discourse.julialang.org/t/statsplots-df-macro-with-args-kwargs/22419)

<div class="topic-metadata">

**Author:** [@gajomi](https://discourse.julialang.org/u/gajomi)\
**Replies:** 2\
**Last updated:** [March 27, 2019, 8:11pm UTC](https://discourse.julialang.org/t/statsplots-df-macro-with-args-kwargs/22419 "2019-03-27T20:11:02Z")

</div>

I can make the following call in StatsPlots using the @df macro: @df labs histogram(:obs\_value, group = :observation, legend = :topright, size = (1500,300)) However, when I try foo = :observation baz = :obs\_value @df …

---

## [Topological Data Analysis](https://discourse.julialang.org/t/topological-data-analysis/2292)

<div class="topic-metadata">

**Author:** [@shivin9](https://discourse.julialang.org/u/shivin9)\
**Replies:** 14\
**Last updated:** [March 27, 2019, 12:00pm UTC](https://discourse.julialang.org/t/topological-data-analysis/2292 "2019-03-27T12:00:49Z")

</div>

Hi all, I am Shivin a final year Computer Science student at BITS Pilani, India. I am quite interested in Julia as a language and have contributed to IterativeSolvers.jl and LinearMaps.jl before. Recently I have got int…

---

## [Plots: change in \`savefig()\`?](https://discourse.julialang.org/t/plots-change-in-savefig/22304)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 0\
**Last updated:** [March 25, 2019, 2:30pm UTC](https://discourse.julialang.org/t/plots-change-in-savefig/22304 "2019-03-25T14:30:24Z")

</div>

When saving figures from Plots, I use savefig(). In the past, savefig("figfile.svg") saved the figure in a file named figfile, with file extension svg. Today, savefig("figfile.svg") saves the file in a file named figfil…

---

## [Cartographic projections using RecipesBase](https://discourse.julialang.org/t/cartographic-projections-using-recipesbase/21421)

<div class="topic-metadata">

**Author:** [@Maurizio\_Tomasi](https://discourse.julialang.org/u/Maurizio_Tomasi)\
**Replies:** 8\
**Last updated:** [March 22, 2019, 6:45pm UTC](https://discourse.julialang.org/t/cartographic-projections-using-recipesbase/21421 "2019-03-22T18:45:26Z")

</div>

Hi to everybody, In the past years, I have developed a library that implements Healpix projection functions: GitHub - ziotom78/Healpix.jl: Healpix library written in Julia. Unlike Michael Eastwood’s Libhealpix.jl, this …

---

## [How to use a color gradient when plotting different functions in the same plot?](https://discourse.julialang.org/t/how-to-use-a-color-gradient-when-plotting-different-functions-in-the-same-plot/22117)

<div class="topic-metadata">

**Author:** [@drarnau](https://discourse.julialang.org/u/drarnau)\
**Replies:** 2\
**Last updated:** [March 22, 2019, 1:01pm UTC](https://discourse.julialang.org/t/how-to-use-a-color-gradient-when-plotting-different-functions-in-the-same-plot/22117 "2019-03-22T13:01:59Z")

</div>

I have tried something like plot() for a = 1:5 f(x) = x^a plot!(f, -5, 5, palette = cgrad(:viridis)) end plot!() What I am looking for is that the colours of each plot reflect the idea that a increases. For ex…

---

## [Raincloud Plots](https://discourse.julialang.org/t/raincloud-plots/22146)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [March 22, 2019, 11:31am UTC](https://discourse.julialang.org/t/raincloud-plots/22146 "2019-03-22T11:31:14Z")

</div>

Looks interesting! I guess it will be easy enough to use the Python code.

---

## [Find normal vector of the triangle faces on the mesh](https://discourse.julialang.org/t/find-normal-vector-of-the-triangle-faces-on-the-mesh/22178)

<div class="topic-metadata">

**Author:** [@yusri-dh](https://discourse.julialang.org/u/yusri-dh)\
**Replies:** 0\
**Last updated:** [March 22, 2019, 3:08am UTC](https://discourse.julialang.org/t/find-normal-vector-of-the-triangle-faces-on-the-mesh/22178 "2019-03-22T03:08:34Z")

</div>

Hello all, I have some question about finding the normal vector of the faces in the mesh using GeometryTypes.jl In GeometryTypes.jl, I can calculate the normal of the vertices using normals(mesh), is there any function…

---

## [Plot Neural Network Layout](https://discourse.julialang.org/t/plot-neural-network-layout/22007)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 13\
**Last updated:** [March 21, 2019, 9:24pm UTC](https://discourse.julialang.org/t/plot-neural-network-layout/22007 "2019-03-21T21:24:48Z")

</div>

I need to make a plot/graphic of my neural network. I know there’s stuff out there for plotting graphs but I can’t seem to find anything that has the typical structure with the vertices lined up and connected by edges to…

---

## [Interactive plot with Vegalite](https://discourse.julialang.org/t/interactive-plot-with-vegalite/22129)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 8\
**Last updated:** [March 21, 2019, 5:15pm UTC](https://discourse.julialang.org/t/interactive-plot-with-vegalite/22129 "2019-03-21T17:15:07Z")

</div>

Is anyone familiar with using Vegalite from the REPL to produce interactive plots (to zoom in/out at a minimum)? I understand this works in Jupyter notebooks, but I want to avoid notebooks and work directly in the termi…

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

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