# Visualization

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

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

**Page:** 80

---

## [Plots annotate](https://discourse.julialang.org/t/plots-annotate/37784)

<div class="topic-metadata">

**Author:** [@j2b2](https://discourse.julialang.org/u/j2b2)\
**Replies:** 11\
**Last updated:** [April 20, 2020, 10:49am UTC](https://discourse.julialang.org/t/plots-annotate/37784 "2020-04-20T10:49:20Z")

</div>

With recent version of Plots (1.0.11) and GR backend: annotate!(x,y,t) doesn’t work anymore, I must use: annotate!((x,y,t))

---

## [Plot padding when \`showaxis\` false](https://discourse.julialang.org/t/plot-padding-when-showaxis-false/37716)

<div class="topic-metadata">

**Author:** [@chriswaudby](https://discourse.julialang.org/u/chriswaudby)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 12:01am UTC](https://discourse.julialang.org/t/plot-padding-when-showaxis-false/37716 "2020-04-18T00:01:58Z")

</div>

I would like to make some plots where the y axis is not shown. I can do this by setting yshowaxis=false, but there is then ugly excess padding on the left of the figure. For example: using Plots y=\[1,1000000\] plot(y,ys…

---

## [Table zebra stripes using Documenter.jl](https://discourse.julialang.org/t/table-zebra-stripes-using-documenter-jl/37707)

<div class="topic-metadata">

**Author:** [@Mirsad\_Cosovic](https://discourse.julialang.org/u/Mirsad_Cosovic)\
**Replies:** 3\
**Last updated:** [April 16, 2020, 7:01pm UTC](https://discourse.julialang.org/t/table-zebra-stripes-using-documenter-jl/37707 "2020-04-16T19:01:08Z")

</div>

Hi, I’m curious how to make tables with zebra stripes, using Documenter and Github Actions, like here: http://gadflyjl.org/stable/man/plotting/

---

## [Multiline title in Plots.jl](https://discourse.julialang.org/t/multiline-title-in-plots-jl/5977)

<div class="topic-metadata">

**Author:** [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 2:41pm UTC](https://discourse.julialang.org/t/multiline-title-in-plots-jl/5977 "2020-04-15T14:41:31Z")

</div>

Is there a way to create a plot title in multiple lines? In R, ggplot2 displays title in two lines if the title string has an embedded newline character. Thanks

---

## [Contour plot for 2d kernel density](https://discourse.julialang.org/t/contour-plot-for-2d-kernel-density/37223)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 9\
**Last updated:** [April 14, 2020, 9:57am UTC](https://discourse.julialang.org/t/contour-plot-for-2d-kernel-density/37223 "2020-04-14T09:57:45Z")

</div>

I need to visualize about 10^5 points on a 2D scatterplot, with four categories. What I am currently doing is fitting a kernel density using KernelDensity.kde, making a rectangular grid, finding the contours with Coun…

---

## [Grid layout for multiple plots](https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528)

<div class="topic-metadata">

**Author:** [@Farhan\_Samir](https://discourse.julialang.org/u/Farhan_Samir)\
**Replies:** 2\
**Last updated:** [April 13, 2020, 8:42pm UTC](https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528 "2020-04-13T20:42:54Z")

</div>

Hi, I’m trying to create a 2 by 10 grid of plots. The Plots documentation provides an example for a 2x2 grid: plot(rand(10,4), layout=grid(2,2),ticks=nothing) However, extending this to plot(rand(10,20),layout=grid(2…

---

## [Gaston to plot Cobb Douglas, not sure how to set scale](https://discourse.julialang.org/t/gaston-to-plot-cobb-douglas-not-sure-how-to-set-scale/37369)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 3\
**Last updated:** [April 11, 2020, 5:16pm UTC](https://discourse.julialang.org/t/gaston-to-plot-cobb-douglas-not-sure-how-to-set-scale/37369 "2020-04-11T17:16:41Z")

</div>

I’m trying to model the above function L= 0:600 K=0:600 Q=0:8000 surf(L, K, (L,K)-\>.1\*K^.5\*L^1.5, title="Cobb Douglas", plotstyle="lines", linecolor="magenta", gpcom="unset colorbox") surf!(x,y,(x,y)-\>cos.(x/…

---

## [Change thickness of axises in plots](https://discourse.julialang.org/t/change-thickness-of-axises-in-plots/37387)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 0\
**Last updated:** [April 11, 2020, 11:21am UTC](https://discourse.julialang.org/t/change-thickness-of-axises-in-plots/37387 "2020-04-11T11:21:56Z")

</div>

Hello, how do I change the thickness of the axes when I make a plot (without changes the thickness of texts, ticks, etc.)?

---

## [Help for improvement for drawing shapefile using Gadfly](https://discourse.julialang.org/t/help-for-improvement-for-drawing-shapefile-using-gadfly/37348)

<div class="topic-metadata">

**Author:** [@L\_Adam](https://discourse.julialang.org/u/L_Adam)\
**Replies:** 4\
**Last updated:** [April 11, 2020, 2:55am UTC](https://discourse.julialang.org/t/help-for-improvement-for-drawing-shapefile-using-gadfly/37348 "2020-04-11T02:55:46Z")

</div>

I use Shapefile.jl parse \*.shp file into DataFrame, with each row having some region information and a Polygon struct specifies the shape of that region. Everything works smoothly. Big thanks :kissing\_smiling\_eyes: Afte…

---

## [Persistent plotly in IJulia](https://discourse.julialang.org/t/persistent-plotly-in-ijulia/37225)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 0\
**Last updated:** [April 8, 2020, 9:00am UTC](https://discourse.julialang.org/t/persistent-plotly-in-ijulia/37225 "2020-04-08T09:00:00Z")

</div>

How can I have Plots.jl plotlyjs backend draw persistent figures in Jupyter notebooks?That is, when a session ends and jupyter is turned off, after coming back to the notebook, the plots produced by plotlyjs disappear. …

---

## [Vege-Lite encode :point shape and angle](https://discourse.julialang.org/t/vege-lite-encode-point-shape-and-angle/33327)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 3:36am UTC](https://discourse.julialang.org/t/vege-lite-encode-point-shape-and-angle/33327 "2020-04-07T03:36:04Z")

</div>

I want to draw a scatter plot but use different point shape and angles to show different orientations and directions. the stroke shape and arrow shape seems what I want, but I am have trouble to make it work function f…

---

## [What is the status of the Plots ecosystem and what package should I use?](https://discourse.julialang.org/t/what-is-the-status-of-the-plots-ecosystem-and-what-package-should-i-use/18043)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 11\
**Last updated:** [April 6, 2020, 5:04pm UTC](https://discourse.julialang.org/t/what-is-the-status-of-the-plots-ecosystem-and-what-package-should-i-use/18043 "2020-04-06T17:04:01Z")

</div>

I am coming from a ggplot2 background and would like to completely switch my workflow to Julia. What is the status of plotting in Julia? Is gadfly still viable, is vegalite hooked in with Plots.jl yet?

---

## [How do I plot a curve in plots?](https://discourse.julialang.org/t/how-do-i-plot-a-curve-in-plots/36995)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 23\
**Last updated:** [April 6, 2020, 1:18am UTC](https://discourse.julialang.org/t/how-do-i-plot-a-curve-in-plots/36995 "2020-04-06T01:18:12Z")

</div>

function Π(E,W) E = 1:10 W = 1:10 sqrt(E)+4\*W end When I try to enter this function, it gives me Π as an output, and If if I try to use Π as a function, I’m told that I don’t get a function.

---

## [Multilple plots on the same gragh](https://discourse.julialang.org/t/multilple-plots-on-the-same-gragh/37040)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 1:15am UTC](https://discourse.julialang.org/t/multilple-plots-on-the-same-gragh/37040 "2020-04-05T01:15:16Z")

</div>

I’m able to graph two functions with plots using Plots U(E,W)= (40-E)^2/sqrt(W) #Utility function E = 0:40 W = 10:100 UC=contour(E,W,U) B(E,W)= -(40-E)/W # budget line function E = 0:40 BL=contour(E,W,B) How would I…

---

## [Voronoi Visualization](https://discourse.julialang.org/t/voronoi-visualization/36602)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 16\
**Last updated:** [April 2, 2020, 7:42am UTC](https://discourse.julialang.org/t/voronoi-visualization/36602 "2020-04-02T07:42:47Z")

</div>

I have a set of points in 2D that I’m using to define Voronoi cells using NearestNeighbors.jl. I’d like to do some visualization of this. The two things I would ideally like to be able to do: Plot the Voronoi cells C…

---

## [Parallel coordinates plot with PlotlyJS](https://discourse.julialang.org/t/parallel-coordinates-plot-with-plotlyjs/36672)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 4\
**Last updated:** [April 1, 2020, 9:15pm UTC](https://discourse.julialang.org/t/parallel-coordinates-plot-with-plotlyjs/36672 "2020-04-01T21:15:05Z")

</div>

I would like to use PlotlyJS’s parallel coordinates plot to achieve something similar to this python example. I have tried extracting into separate dataframes my separate groupings, built separate traces and then, fina…

---

## [Partially empty 2d histogram Plots.jl](https://discourse.julialang.org/t/partially-empty-2d-histogram-plots-jl/36828)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 7:48am UTC](https://discourse.julialang.org/t/partially-empty-2d-histogram-plots-jl/36828 "2020-04-01T07:48:05Z")

</div>

Attempting plotting a small circle in 2d histogram (with custom bins and limits), gives a natural result in pyplot: However, Plots for some reason gives blank pixels (same image):

---

## [Alternative to deprecated NetworkViz?](https://discourse.julialang.org/t/alternative-to-deprecated-networkviz/36713)

<div class="topic-metadata">

**Author:** [@Xarg](https://discourse.julialang.org/u/Xarg)\
**Replies:** 1\
**Last updated:** [March 31, 2020, 3:21am UTC](https://discourse.julialang.org/t/alternative-to-deprecated-networkviz/36713 "2020-03-31T03:21:12Z")

</div>

Hi, I’m looking to convert one of my R notebooks to Julia, and one of the packages I’m using is VisNetwork which gives me an interactive graph I can click on nodes to get additional information on, and drag them around. …

---

## [GraphPlot.jl: possible to change font family?](https://discourse.julialang.org/t/graphplot-jl-possible-to-change-font-family/36699)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 3\
**Last updated:** [March 30, 2020, 1:04pm UTC](https://discourse.julialang.org/t/graphplot-jl-possible-to-change-font-family/36699 "2020-03-30T13:04:28Z")

</div>

I’m using gplot() from the GraphPlot.jl package to plot a graph created with LightGraphs.jl. I’d like to change the font family used for the node labels, but can’t find in the documentation how to do that. Does anyone kn…

---

## [Modifying legend markersize/linelength of a Plots/PyPlot plot after creation](https://discourse.julialang.org/t/modifying-legend-markersize-linelength-of-a-plots-pyplot-plot-after-creation/36723)

<div class="topic-metadata">

**Author:** [@dapz](https://discourse.julialang.org/u/dapz)\
**Replies:** 0\
**Last updated:** [March 30, 2020, 9:03am UTC](https://discourse.julialang.org/t/modifying-legend-markersize-linelength-of-a-plots-pyplot-plot-after-creation/36723 "2020-03-30T09:03:25Z")

</div>

Hi, I’m using a lot Plots.jl as I like having the common interface, but right now using mostly the PyPlot backend. I don’t want to use directly PyPlot as I coded some Plots recipes that I use. I have trouble with the le…

---

## [Saving 2D arrays as indexed color images](https://discourse.julialang.org/t/saving-2d-arrays-as-indexed-color-images/36399)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 11\
**Last updated:** [March 26, 2020, 1:15pm UTC](https://discourse.julialang.org/t/saving-2d-arrays-as-indexed-color-images/36399 "2020-03-26T13:15:10Z")

</div>

Hi, please, is there a way to save a 2D array of integers as a .png image, where for each integer value in the array I associate a certain color in the output image? I am looking for a solution for Indexed color - Wiki…

---

## [Setting min and max values in a heatmap (Plots.jl)](https://discourse.julialang.org/t/setting-min-and-max-values-in-a-heatmap-plots-jl/36496)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 3:39pm UTC](https://discourse.julialang.org/t/setting-min-and-max-values-in-a-heatmap-plots-jl/36496 "2020-03-25T15:39:38Z")

</div>

I am making heatmaps of a discrete function taking values 0…5 . Plots (GR) makes automatic scaling for me: min is green, max is red (with seriescolor=RdYlGn\_r ). I want the heatmaps to have the same “color scale” - 0 is…

---

## [Weave -- is there a way to set the margins for a pdf?](https://discourse.julialang.org/t/weave-is-there-a-way-to-set-the-margins-for-a-pdf/35345)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 2\
**Last updated:** [March 21, 2020, 9:37pm UTC](https://discourse.julialang.org/t/weave-is-there-a-way-to-set-the-margins-for-a-pdf/35345 "2020-03-21T21:37:54Z")

</div>

I’m able to output my data to PDF using Weave, but some of my tables are cut off and put on a row below, ruinning flow. This is understandable, but the right margin is a good 2.5" to 3" from the end of the page, where t…

---

## [How to plot very large numbers of points and save the figures with small latencies for raw audio images?](https://discourse.julialang.org/t/how-to-plot-very-large-numbers-of-points-and-save-the-figures-with-small-latencies-for-raw-audio-images/30597)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 17\
**Last updated:** [March 21, 2020, 3:46pm UTC](https://discourse.julialang.org/t/how-to-plot-very-large-numbers-of-points-and-save-the-figures-with-small-latencies-for-raw-audio-images/30597 "2020-03-21T15:46:52Z")

</div>

I want to plot the raw signal data from audio data that is sampled at the standard 44Kbps but there is a challenge if the signal is taken for a very long time; eg. 3 hrs of signal. There is then considerable latency in t…

---

## [Simple example of Interactive + Dynamically Updating (VegaLite) graph with Julia backend](https://discourse.julialang.org/t/simple-example-of-interactive-dynamically-updating-vegalite-graph-with-julia-backend/36007)

<div class="topic-metadata">

**Author:** [@robertfeldt](https://discourse.julialang.org/u/robertfeldt)\
**Replies:** 5\
**Last updated:** [March 18, 2020, 3:50pm UTC](https://discourse.julialang.org/t/simple-example-of-interactive-dynamically-updating-vegalite-graph-with-julia-backend/36007 "2020-03-18T15:50:04Z")

</div>

I’m sure there are many ways this can be done in Julia but if anyone has seen very simple examples of how to produce interactive graphs that can be dynamically updated from (backend) Julia code that would be great? My s…

---

## [VegaLite: Text labels on bar charts](https://discourse.julialang.org/t/vegalite-text-labels-on-bar-charts/36048)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 2\
**Last updated:** [March 16, 2020, 6:38pm UTC](https://discourse.julialang.org/t/vegalite-text-labels-on-bar-charts/36048 "2020-03-16T18:38:04Z")

</div>

I can’t figure out how to show the actual values on a bar chart in VegaLite, I tried adapting the examples but clearly I don’t understand what options are necessary to achieve what I want. I’m able to do each layer more…

---

## [Alternative to Data Voyager for Julia](https://discourse.julialang.org/t/alternative-to-data-voyager-for-julia/35946)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 3\
**Last updated:** [March 14, 2020, 12:25pm UTC](https://discourse.julialang.org/t/alternative-to-data-voyager-for-julia/35946 "2020-03-14T12:25:01Z")

</div>

Is Data Voyager (.jl), a beautiful package, the only one of its kind for Julia? Is there another such system?

---

## [VegaLite: Facet plot with errorband](https://discourse.julialang.org/t/vegalite-facet-plot-with-errorband/35903)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 4:55pm UTC](https://discourse.julialang.org/t/vegalite-facet-plot-with-errorband/35903 "2020-03-13T16:55:13Z")

</div>

Does VegaLite not support faceting of plots with errorbands? I’m struggling to make this work: using VegaLite, DataFrames function generatedata() df = DataFrame() K = 10 L = 10 Cat1 = \[:A,:B\] Cat2 =…

---

## [Using Blink, Interact and PlotyJS together](https://discourse.julialang.org/t/using-blink-interact-and-plotyjs-together/29241)

<div class="topic-metadata">

**Author:** [@amit112amit](https://discourse.julialang.org/u/amit112amit)\
**Replies:** 2\
**Last updated:** [March 12, 2020, 1:19pm UTC](https://discourse.julialang.org/t/using-blink-interact-and-plotyjs-together/29241 "2020-03-12T13:19:39Z")

</div>

Hi. As far as I could find, we cannot use Interact.@manipulate with PlotlyJS in a Jupyterlab notebook to make interactive plots. I was able to use GR and PyPlot but I prefer using PlotlyJS because it allows me to update…

---

## [Problem with Weave code](https://discourse.julialang.org/t/problem-with-weave-code/35862)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 9\
**Last updated:** [March 12, 2020, 7:40am UTC](https://discourse.julialang.org/t/problem-with-weave-code/35862 "2020-03-12T07:40:16Z")

</div>

weave("C:/Users/brett/OneDrive/Documents/", out\_path=C:/Users/brett/OneDrive/Documents/ECON214Assignment3.pdf, doctype="md2pdf") When I put in this code I get an error. What am I doing wrong?

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

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