# Visualization

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

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

**Page:** 84

---

## [OpenCV on windows](https://discourse.julialang.org/t/opencv-on-windows/20499)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 6\
**Last updated:** [October 8, 2019, 3:28pm UTC](https://discourse.julialang.org/t/opencv-on-windows/20499 "2019-10-08T15:28:41Z")

</div>

I’d like to ask what is the status and recommended approach for using OpenCV on windows. The OpenCV.jl uses CXX.jl for wrapping the C++ library and as such it is not really an option on Windows - the CXX package on wind…

---

## [Plotting derived variables](https://discourse.julialang.org/t/plotting-derived-variables/29556)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 2\
**Last updated:** [October 6, 2019, 4:30pm UTC](https://discourse.julialang.org/t/plotting-derived-variables/29556 "2019-10-06T16:30:30Z")

</div>

Hi, I am writing a function to read data from our simulation code output and plot with PyPlot. The data itself is mostly stored as an array with the 1st dimension as variable index and the rest as spatial indexes (1:nI,…

---

## [Interactive plotting from the REPL?](https://discourse.julialang.org/t/interactive-plotting-from-the-repl/29410)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 8\
**Last updated:** [October 5, 2019, 1:10am UTC](https://discourse.julialang.org/t/interactive-plotting-from-the-repl/29410 "2019-10-05T01:10:23Z")

</div>

Goal is to do some interactive plotting from the REPL on linux (not using an Atom or Jupyter web browser) Previously I made the Fatou.jl package and I would like to make an interactive plot inspired by the repo: Ha…

---

## [Plots.jl twinx question](https://discourse.julialang.org/t/plots-jl-twinx-question/29496)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 0\
**Last updated:** [October 4, 2019, 5:03pm UTC](https://discourse.julialang.org/t/plots-jl-twinx-question/29496 "2019-10-04T17:03:03Z")

</div>

I have two questions about the twinx tool in Plots.jl: Is there a way to have a single legend that includes the labels for both sets? How do I assign a different ylabel to the right axes from the left axes?

---

## [Math In Plots.jl](https://discourse.julialang.org/t/math-in-plots-jl/14930)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 11\
**Last updated:** [October 3, 2019, 12:22am UTC](https://discourse.julialang.org/t/math-in-plots-jl/14930 "2019-10-03T00:22:52Z")

</div>

could someone please show me how to set a simple equation into a plot, say \\sqrt{\\frac{a}{b}} ?

---

## [Jupyter lab plot update only the curve and not the axes](https://discourse.julialang.org/t/jupyter-lab-plot-update-only-the-curve-and-not-the-axes/29097)

<div class="topic-metadata">

**Author:** [@amit112amit](https://discourse.julialang.org/u/amit112amit)\
**Replies:** 9\
**Last updated:** [October 1, 2019, 7:13pm UTC](https://discourse.julialang.org/t/jupyter-lab-plot-update-only-the-curve-and-not-the-axes/29097 "2019-10-01T19:13:00Z")

</div>

Hi. I have tried using “Interact.jl” with “PyPlot.jl” in Jupyter lab and it works. But it updates the whole figure every time I move the sliders. Thus, there is blinking. Is there something like jupyter-matplotlib that …

---

## [Gardner-Altman Plots in Julia](https://discourse.julialang.org/t/gardner-altman-plots-in-julia/29286)

<div class="topic-metadata">

**Author:** [@Clement\_POIRET](https://discourse.julialang.org/u/Clement_POIRET)\
**Replies:** 5\
**Last updated:** [September 29, 2019, 1:35pm UTC](https://discourse.julialang.org/t/gardner-altman-plots-in-julia/29286 "2019-09-29T13:35:51Z")

</div>

Hi everyone, I’m switching from Python to Julia, and I’m interested in Estimation Statistics to replace classical NHST approach. To do so, I’d like to make Gardner-Altman Plots in Julia but I have to say I’m a bit confu…

---

## [Is it possible to draw contour plot in Makie.jl from predefined x, y coordinates of z data points?](https://discourse.julialang.org/t/is-it-possible-to-draw-contour-plot-in-makie-jl-from-predefined-x-y-coordinates-of-z-data-points/29147)

<div class="topic-metadata">

**Author:** [@KestutisMa](https://discourse.julialang.org/u/KestutisMa)\
**Replies:** 6\
**Last updated:** [September 28, 2019, 3:55pm UTC](https://discourse.julialang.org/t/is-it-possible-to-draw-contour-plot-in-makie-jl-from-predefined-x-y-coordinates-of-z-data-points/29147 "2019-09-28T15:55:17Z")

</div>

Hi, I am thinking how to quickly visualize 2D matrix, given with matrices X, Y of coordinates of corresponding data points in Z matrix. It will be used in real-time visualization of action potential propagation in cardia…

---

## [Automatically cropping images](https://discourse.julialang.org/t/automatically-cropping-images/29235)

<div class="topic-metadata">

**Author:** [@merckxiaan](https://discourse.julialang.org/u/merckxiaan)\
**Replies:** 6\
**Last updated:** [September 27, 2019, 3:45pm UTC](https://discourse.julialang.org/t/automatically-cropping-images/29235 "2019-09-27T15:45:58Z")

</div>

Hello, I’ve got a directory filled with a couple of hundred images, similar to something like this: The problem is a lot of these images aren’t centered or don’t take up a lot of the space (e.g. a lot of excess whitesp…

---

## [Heatmap with labels per block](https://discourse.julialang.org/t/heatmap-with-labels-per-block/29152)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 4\
**Last updated:** [September 25, 2019, 6:33pm UTC](https://discourse.julialang.org/t/heatmap-with-labels-per-block/29152 "2019-09-25T18:33:58Z")

</div>

Is it possible to generate something like this (Create heatmap chart - MATLAB heatmap) with Plots.jl? Especially the labels inside the blocks. I could only find this example: http://docs.juliaplots.org/latest/examples/g…

---

## [What can we do if the titile of the subplot overlap the xlabels](https://discourse.julialang.org/t/what-can-we-do-if-the-titile-of-the-subplot-overlap-the-xlabels/28944)

<div class="topic-metadata">

**Author:** [@Lyupinpin](https://discourse.julialang.org/u/Lyupinpin)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 1:03pm UTC](https://discourse.julialang.org/t/what-can-we-do-if-the-titile-of-the-subplot-overlap-the-xlabels/28944 "2019-09-19T13:03:57Z")

</div>

using PyPlot clf() fig = figure("error",figsize=(10,50)) for i=1:3 subplot(3,1,i) a=rand(100) plot(a,a) ylabel(" Y",fontsize=18) xlabel("X",fontsize=18) title("L",fontsize=18) ax = gca() …

---

## [Blank images and "dead pixels" in Makie](https://discourse.julialang.org/t/blank-images-and-dead-pixels-in-makie/28609)

<div class="topic-metadata">

**Author:** [@dalarev](https://discourse.julialang.org/u/dalarev)\
**Replies:** 42\
**Last updated:** [September 18, 2019, 3:55am UTC](https://discourse.julialang.org/t/blank-images-and-dead-pixels-in-makie/28609 "2019-09-18T03:55:54Z")

</div>

I run into blank images and “dead pixels” when running this Makie example (see below). The bottom-center image is blank, while the bottom-right image has a “dead pixel” at the bottom-right corner; hard to see, but it is…

---

## [Draw polygon around scatterplot data?](https://discourse.julialang.org/t/draw-polygon-around-scatterplot-data/28729)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 6\
**Last updated:** [September 16, 2019, 3:29pm UTC](https://discourse.julialang.org/t/draw-polygon-around-scatterplot-data/28729 "2019-09-16T15:29:22Z")

</div>

Is there any package or combination of packages that would let me draw a polygon around a region in scatterplot data? Even just pieces I could cobble something together from. The end goal is to use it to filter my point…

---

## [Animation error Makie](https://discourse.julialang.org/t/animation-error-makie/18405)

<div class="topic-metadata">

**Author:** [@OlivierHnt](https://discourse.julialang.org/u/OlivierHnt)\
**Replies:** 15\
**Last updated:** [September 15, 2019, 4:04pm UTC](https://discourse.julialang.org/t/animation-error-makie/18405 "2019-09-15T16:04:51Z")

</div>

I downloaded Makie and I tried to run one of the given example: using Makie xyvec = rand(Point2f0, (2)) .\* 5 .+ 1 velvec = rand(Point2f0, (2)) .\* 10 # define some other parameters t = 0 ts = 0.03 balldiameter = 1…

---

## [VegaLite.jl: render as raw image](https://discourse.julialang.org/t/vegalite-jl-render-as-raw-image/28645)

<div class="topic-metadata">

**Author:** [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Replies:** 8\
**Last updated:** [September 12, 2019, 10:12am UTC](https://discourse.julialang.org/t/vegalite-jl-render-as-raw-image/28645 "2019-09-12T10:12:17Z")

</div>

I ran into a problem when using VegaLite (+Jupyter) on larger datasets (80k+ rows, 6 variables). When rendering a scatterplot inline in a notebook, jupyter hangs when saving. This is a MWE: df = DataFrame(\[Symbol("var$i…

---

## [Corrplot fails](https://discourse.julialang.org/t/corrplot-fails/28639)

<div class="topic-metadata">

**Author:** [@moesphere](https://discourse.julialang.org/u/moesphere)\
**Replies:** 2\
**Last updated:** [September 11, 2019, 1:25pm UTC](https://discourse.julialang.org/t/corrplot-fails/28639 "2019-09-11T13:25:56Z")

</div>

I am trying to plot data with corrplot(). It works for certain data, but fails for other data, i.e. no error is thrown but the plotting does not finish either. See the following minimal example: using StatsPlots A = \[3.…

---

## [How to mark specific points in a contour plot using plots.jl?](https://discourse.julialang.org/t/how-to-mark-specific-points-in-a-contour-plot-using-plots-jl/28616)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 2\
**Last updated:** [September 11, 2019, 7:51am UTC](https://discourse.julialang.org/t/how-to-mark-specific-points-in-a-contour-plot-using-plots-jl/28616 "2019-09-11T07:51:29Z")

</div>

Hello, As the title of the post says, I want to mark specific points in a contour plot in a similar way that we do in a normal plot, like in the picture below The code that generated the plot: plot(x,xV,title="Solut…

---

## [How to implement interactive plots in IJulia](https://discourse.julialang.org/t/how-to-implement-interactive-plots-in-ijulia/9284)

<div class="topic-metadata">

**Author:** [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Replies:** 11\
**Last updated:** [September 10, 2019, 6:04pm UTC](https://discourse.julialang.org/t/how-to-implement-interactive-plots-in-ijulia/9284 "2019-09-10T18:04:07Z")

</div>

I am trying to get interactive plots with Gaston in IJulia notebooks. I am almost there, but there is one final piece of the puzzle that I can’t quite figure out. I have this code in a notebook: using Gaston, Reactive, …

---

## [Bar chart with rotated x label for each bar](https://discourse.julialang.org/t/bar-chart-with-rotated-x-label-for-each-bar/28554)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 5\
**Last updated:** [September 9, 2019, 5:32pm UTC](https://discourse.julialang.org/t/bar-chart-with-rotated-x-label-for-each-bar/28554 "2019-09-09T17:32:38Z")

</div>

I’m having a hard time plotting a simple bar chart with Plots.jl that has a label below each bar. The data are stored in a DataFrame that looks like this: julia\> merged\[:, \[1,5,6\]\] 85×3 DataFrame │ Row │ naics │ % of to…

---

## [Makie: visualize subset of the data](https://discourse.julialang.org/t/makie-visualize-subset-of-the-data/28318)

<div class="topic-metadata">

**Author:** [@JesperMartinsson](https://discourse.julialang.org/u/JesperMartinsson)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 2:28pm UTC](https://discourse.julialang.org/t/makie-visualize-subset-of-the-data/28318 "2019-09-03T14:28:57Z")

</div>

using Makie Without removing data is it possible to only visualize a subset of the data (e.g. in scatter!) by defining geometric boundaries. I’ve been playing around with limits using FRec3D but that only sets the axis …

---

## [Subplots without gap between them](https://discourse.julialang.org/t/subplots-without-gap-between-them/27491)

<div class="topic-metadata">

**Author:** [@Topias\_Karjalainen](https://discourse.julialang.org/u/Topias_Karjalainen)\
**Replies:** 3\
**Last updated:** [September 3, 2019, 10:06am UTC](https://discourse.julialang.org/t/subplots-without-gap-between-them/27491 "2019-09-03T10:06:33Z")

</div>

Hi! I’m trying to create a plotting package for plotting financial data (as an exercise, and as a tool that I need). For it to look like I want it to look, I need to plot a subplot for indicators under the main plot tha…

---

## [Read and write/save 3-D image](https://discourse.julialang.org/t/read-and-write-save-3-d-image/26978)

<div class="topic-metadata">

**Author:** [@Yoshua](https://discourse.julialang.org/u/Yoshua)\
**Replies:** 5\
**Last updated:** [September 2, 2019, 9:50pm UTC](https://discourse.julialang.org/t/read-and-write-save-3-d-image/26978 "2019-09-02T21:50:33Z")

</div>

Hello! I have problem with image manipulation. I want to save a 3D image array in png format. Also wanted to know how to plot an image with some function of ImageView or Image package. Image encoding is RGB. If anyon…

---

## [Animation fails in frame()](https://discourse.julialang.org/t/animation-fails-in-frame/28022)

<div class="topic-metadata">

**Author:** [@Brad\_Hines](https://discourse.julialang.org/u/Brad_Hines)\
**Replies:** 9\
**Last updated:** [September 2, 2019, 7:35am UTC](https://discourse.julialang.org/t/animation-fails-in-frame/28022 "2019-09-02T07:35:48Z")

</div>

I am trying to build an animation from a double-loop that goes through every hour then every minute of a day, constructing a simulated image. When my code gets to this line: Plots.frame(anim,plt) it dies with the erro…

---

## [Makie - drawing lines through transparent surface](https://discourse.julialang.org/t/makie-drawing-lines-through-transparent-surface/28148)

<div class="topic-metadata">

**Author:** [@nhardy](https://discourse.julialang.org/u/nhardy)\
**Replies:** 4\
**Last updated:** [August 29, 2019, 3:10pm UTC](https://discourse.julialang.org/t/makie-drawing-lines-through-transparent-surface/28148 "2019-08-29T15:10:28Z")

</div>

Hi, I’ve been using Julia and the Plots package for a while, but only recently have tried using Makie for some visualizations, and ran into some problems. No matter what I try, I can’t get line segments to play nicely wi…

---

## [How to easily create graphs from tables?](https://discourse.julialang.org/t/how-to-easily-create-graphs-from-tables/28069)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 8:38am UTC](https://discourse.julialang.org/t/how-to-easily-create-graphs-from-tables/28069 "2019-08-28T08:38:18Z")

</div>

Imagine I have a table with nested levels or a csv file with information like this: (or a little bit more complex with numbers on the right side) fig date kumquat papaya peach …

---

## [Issues with JuliaPlots aspect ratio in 3d](https://discourse.julialang.org/t/issues-with-juliaplots-aspect-ratio-in-3d/28023)

<div class="topic-metadata">

**Author:** [@Brad\_Hines](https://discourse.julialang.org/u/Brad_Hines)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 3:19am UTC](https://discourse.julialang.org/t/issues-with-juliaplots-aspect-ratio-in-3d/28023 "2019-08-27T03:19:39Z")

</div>

I am using plot(x,y,z,aspect\_ratio=:equal,…) Sometimes the aspect ratio “sticks” and sometimes it doesn’t. I am doing a day-long animation, and the aspect ratio jumps once every hour or two. For example, it’s fine at…

---

## [PGFPlotsX.jl - xtick distance/range/count for histograms?](https://discourse.julialang.org/t/pgfplotsx-jl-xtick-distance-range-count-for-histograms/27311)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 9\
**Last updated:** [August 23, 2019, 10:26am UTC](https://discourse.julialang.org/t/pgfplotsx-jl-xtick-distance-range-count-for-histograms/27311 "2019-08-23T10:26:36Z")

</div>

This is more a general question: I have to deal with lots of histograms and I have problems setting the xticks when the option ybar interval is set, since xtick distance = {NUMBER} seems to be ignored by pgfplots. To be…

---

## [Series recipe for a 3d plot or a heatmap](https://discourse.julialang.org/t/series-recipe-for-a-3d-plot-or-a-heatmap/27614)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 9:14pm UTC](https://discourse.julialang.org/t/series-recipe-for-a-3d-plot-or-a-heatmap/27614 "2019-08-22T21:14:53Z")

</div>

I am trying to make a recipe for a customized heatmap. However, my new seriestype is not recognized as 3d, is it seems. @recipe function f(::Type{Val{:balanceplot}}, x, y, z) zlim = max(abs.(z)...) clim := (-zli…

---

## [Subplots with Plots/pyplot()/Juno](https://discourse.julialang.org/t/subplots-with-plots-pyplot-juno/22425)

<div class="topic-metadata">

**Author:** [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 8:26pm UTC](https://discourse.julialang.org/t/subplots-with-plots-pyplot-juno/22425 "2019-08-22T20:26:05Z")

</div>

Hello, I am trying to get subplots to work with Plots.jl and pyplot backend. My workflow is as follows: function my\_plot() ... scatter(...) end using Plots pyplot() p1 = my\_plot(args1); p2 = my\_plot(args2); plo…

---

## [How to plot a surface with Makie by using corner points?](https://discourse.julialang.org/t/how-to-plot-a-surface-with-makie-by-using-corner-points/27707)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 3:28am UTC](https://discourse.julialang.org/t/how-to-plot-a-surface-with-makie-by-using-corner-points/27707 "2019-08-20T03:28:59Z")

</div>

Hi, I have x, y, z corner points of a plane as follows. x = \[-24.576 24.576 24.576 -24.576\] y = \[20.0 20.0 20.0 20.0\] z = \[-24.576 -24.576 24.576 24.576\] I am trying to plot the surface with Makie using following com…

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

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