# Visualization

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

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

**Page:** 95

---

## [Change Gtk widget background/font/border color](https://discourse.julialang.org/t/change-gtk-widget-background-font-border-color/5552)

<div class="topic-metadata">

**Author:** [@Loic\_Chappaz](https://discourse.julialang.org/u/Loic_Chappaz)\
**Replies:** 4\
**Last updated:** [August 25, 2017, 2:47pm UTC](https://discourse.julialang.org/t/change-gtk-widget-background-font-border-color/5552 "2017-08-25T14:47:01Z")

</div>

Hi! We are building a GUI with Gtk.jl and we are using Notebook widgets to organize pages, and we have a couple nested Notebooks in there. To help track which tab/page is active, I would like to color the background of …

---

## [Plotlyjs, electron, and exporting figures](https://discourse.julialang.org/t/plotlyjs-electron-and-exporting-figures/5507)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 15\
**Last updated:** [August 23, 2017, 9:21pm UTC](https://discourse.julialang.org/t/plotlyjs-electron-and-exporting-figures/5507 "2017-08-23T21:21:28Z")

</div>

I am using Julia 0.6 on FreeBSD with Plots.jl and plotly() for graphics. Is there a solution for exporting plots to pdf, say, which is less heavyweight than installing Electron? Electron does not work on FreeBSD. (I a…

---

## [Plots: How to create a histogram such that sum of bar heights =1](https://discourse.julialang.org/t/plots-how-to-create-a-histogram-such-that-sum-of-bar-heights-1/5392)

<div class="topic-metadata">

**Author:** [@Seth\_Chandler](https://discourse.julialang.org/u/Seth_Chandler)\
**Replies:** 23\
**Last updated:** [August 23, 2017, 5:47pm UTC](https://discourse.julialang.org/t/plots-how-to-create-a-histogram-such-that-sum-of-bar-heights-1/5392 "2017-08-23T17:47:22Z")

</div>

I want to use the Plots package to create a histogram such that the heights of the bars sum to one (preferably for each series). I was hopeful that normalize=true would do the trick, but its goal is to let the sum of th…

---

## [How to set axes ranges based on one series but not another in Plots Recipe?](https://discourse.julialang.org/t/how-to-set-axes-ranges-based-on-one-series-but-not-another-in-plots-recipe/5253)

<div class="topic-metadata">

**Author:** [@ValdarT](https://discourse.julialang.org/u/ValdarT)\
**Replies:** 4\
**Last updated:** [August 13, 2017, 1:51pm UTC](https://discourse.julialang.org/t/how-to-set-axes-ranges-based-on-one-series-but-not-another-in-plots-recipe/5253 "2017-08-13T13:51:57Z")

</div>

With the following code, the y-axis is based on the distribution and adding the vertical line does not change that. using Distributions, StatPlots gr() dist = Normal(1,1) p = plot(dist, fill=(0,0.5)) plot!(p, \[mean(dis…

---

## [Error plot not defined in RecipesBase](https://discourse.julialang.org/t/error-plot-not-defined-in-recipesbase/5338)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [August 11, 2017, 11:06pm UTC](https://discourse.julialang.org/t/error-plot-not-defined-in-recipesbase/5338 "2017-08-11T23:06:24Z")

</div>

Could you please help debugging this simple issue I am having trying to define a user plot recipe? module FooPlots using RecipesBase @userplot FooPlot @recipe function f(dr::FooPlot) # code goes here end end usin…

---

## [Graph Visualization NetworkLayout Error: 'layout' not defined](https://discourse.julialang.org/t/graph-visualization-networklayout-error-layout-not-defined/5154)

<div class="topic-metadata">

**Author:** [@MikeB2012](https://discourse.julialang.org/u/MikeB2012)\
**Replies:** 4\
**Last updated:** [August 2, 2017, 2:34am UTC](https://discourse.julialang.org/t/graph-visualization-networklayout-error-layout-not-defined/5154 "2017-08-02T02:34:29Z")

</div>

I’m new to Julia and have recently tried to use LightGraphs and NetworkLayout. I’ve run in to some problems trying to run one of the examples. The toy example is from the readme: using LightGraphs using NetworkLayout…

---

## [Ploting Library - ECharts](https://discourse.julialang.org/t/ploting-library-echarts/5140)

<div class="topic-metadata">

**Author:** [@Antonio\_Loureiro](https://discourse.julialang.org/u/Antonio_Loureiro)\
**Replies:** 5\
**Last updated:** [July 31, 2017, 8:37pm UTC](https://discourse.julialang.org/t/ploting-library-echarts/5140 "2017-07-31T20:37:00Z")

</div>

Created a very small and thin library that wraps ECharts (baidu) js charting library. At this moment it has a very flexible series helper function and the chance to fully pass all ECharts api args. It loads and display…

---

## [How to output Type 1 fonts and greek letters on plot labels using PyPlot?](https://discourse.julialang.org/t/how-to-output-type-1-fonts-and-greek-letters-on-plot-labels-using-pyplot/5077)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 1\
**Last updated:** [July 26, 2017, 10:32pm UTC](https://discourse.julialang.org/t/how-to-output-type-1-fonts-and-greek-letters-on-plot-labels-using-pyplot/5077 "2017-07-26T22:32:29Z")

</div>

Hi all, I am getting an error when I am try to plot latex greek letters on the label of a plot using PyPlot. Here is what I am doing: ylabel(L" Ω=Vθ/D\_c ") at the beginning of my script I am using the following optio…

---

## [Adding annotations with custom font and color in plot recipes](https://discourse.julialang.org/t/adding-annotations-with-custom-font-and-color-in-plot-recipes/4740)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 13\
**Last updated:** [July 25, 2017, 9:19am UTC](https://discourse.julialang.org/t/adding-annotations-with-custom-font-and-color-in-plot-recipes/4740 "2017-07-25T09:19:54Z")

</div>

I have created a plot recipe for one of my types in GeoStats.jl: @recipe function f(γ::EmpiricalVariogram; bincounts=true) # get the data x, y, n = values(γ) # discard empty bins x = x\[n .\> 0\]; y = y\[n .\> 0\]; n…

---

## [PyPlot KeyError with simple plot in Julia 0.6](https://discourse.julialang.org/t/pyplot-keyerror-with-simple-plot-in-julia-0-6/4985)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 7\
**Last updated:** [July 21, 2017, 9:11pm UTC](https://discourse.julialang.org/t/pyplot-keyerror-with-simple-plot-in-julia-0-6/4985 "2017-07-21T21:11:04Z")

</div>

julia\> using Plots julia\> pyplot() Plots.PyPlotBackend() julia\> Pkg.status(“PyPlot”) PyPlot 2.3.2 julia\> plot(rand(10), \[rand(10), rand(10)\]) Error showing value of type Plots.Plot{Plots.PyP…

---

## [Visualize 3D mesh with texture](https://discourse.julialang.org/t/visualize-3d-mesh-with-texture/4671)

<div class="topic-metadata">

**Author:** [@Loic\_Chappaz](https://discourse.julialang.org/u/Loic_Chappaz)\
**Replies:** 21\
**Last updated:** [July 19, 2017, 8:28pm UTC](https://discourse.julialang.org/t/visualize-3d-mesh-with-texture/4671 "2017-07-19T20:28:54Z")

</div>

Hi all, I am trying to visualize 3D CAD objects in Julia. Context: I have a CAD model for a spacecraft and I want to display it in my Julia application. So far, I can convert the native CAD file into an .stl or .obj fi…

---

## [Redraw figure from PyPlot.PyObject](https://discourse.julialang.org/t/redraw-figure-from-pyplot-pyobject/4929)

<div class="topic-metadata">

**Author:** [@slowbrain](https://discourse.julialang.org/u/slowbrain)\
**Replies:** 0\
**Last updated:** [July 18, 2017, 2:14pm UTC](https://discourse.julialang.org/t/redraw-figure-from-pyplot-pyobject/4929 "2017-07-18T14:14:27Z")

</div>

Let’s assume I’ve created plot using PyPlot at the end of my script ... # script to get "data" for plot using PyPlot p = plt\[:plot\](data) and then I close the GUI window. I wonder if there is any way to display/save p…

---

## [Plots.jl error bar bar()](https://discourse.julialang.org/t/plots-jl-error-bar-bar/4908)

<div class="topic-metadata">

**Author:** [@iara\_iapc](https://discourse.julialang.org/u/iara_iapc)\
**Replies:** 5\
**Last updated:** [July 18, 2017, 1:53am UTC](https://discourse.julialang.org/t/plots-jl-error-bar-bar/4908 "2017-07-18T01:53:42Z")

</div>

Hello everyone I have a little problem. How to put the yerr in the bar chart? The code below does not work :frowning: using Plots plotlyjs() bar\_plot = bar() data = \[(rand()+1) \* randn(n) + i for i in 1:5\] for i = 1…

---

## [Color and Legend with Gadfly - how can I control them?](https://discourse.julialang.org/t/color-and-legend-with-gadfly-how-can-i-control-them/3168)

<div class="topic-metadata">

**Author:** [@PeterJacko](https://discourse.julialang.org/u/PeterJacko)\
**Replies:** 5\
**Last updated:** [July 17, 2017, 9:23am UTC](https://discourse.julialang.org/t/color-and-legend-with-gadfly-how-can-i-control-them/3168 "2017-07-17T09:23:13Z")

</div>

I would like to ask you if you have any advice… as I can’t sort out one issue when creating plots with Gadfly in Julia v0.5. I need to plot matrices, which have discrete values (from 0 to 127), so that each value is plo…

---

## [ImageDraw Boundingbox MWE](https://discourse.julialang.org/t/imagedraw-boundingbox-mwe/4838)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 3\
**Last updated:** [July 14, 2017, 1:04pm UTC](https://discourse.julialang.org/t/imagedraw-boundingbox-mwe/4838 "2017-07-14T13:04:22Z")

</div>

Could anyone share a MWE using ImageDraw or similar to plot boundboxes on an image? The bounding boxes were generated using Images.component\_boxes I’ve been looking at the Path methods in ImageDraw, but it doesn’t seem…

---

## [Pkg.update() seems to have broken my Plots install](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 4\
**Last updated:** [July 13, 2017, 9:31pm UTC](https://discourse.julialang.org/t/pkg-update-seems-to-have-broken-my-plots-install/2050 "2017-07-13T21:31:06Z")

</div>

Given the trouble i was having with pyplot i decided to try and intall GR it did this: INFO: Precompiling module GR. WARNING: Module Compat with uuid 3037559065285 is missing from the cache. This may mean module Compat…

---

## [Genomic Feature Heatmap](https://discourse.julialang.org/t/genomic-feature-heatmap/4824)

<div class="topic-metadata">

**Author:** [@snystrom](https://discourse.julialang.org/u/snystrom)\
**Replies:** 0\
**Last updated:** [July 12, 2017, 9:37pm UTC](https://discourse.julialang.org/t/genomic-feature-heatmap/4824 "2017-07-12T21:37:18Z")

</div>

Is it possible to move the location of a legend for heatmaps using Plot()? I have tried every available backend and the legend = :bottom (or any other :direction) does not work. legend = false behaves as expected, howeve…

---

## [Imfill Equivalent](https://discourse.julialang.org/t/imfill-equivalent/4772)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 1\
**Last updated:** [July 11, 2017, 11:47am UTC](https://discourse.julialang.org/t/imfill-equivalent/4772 "2017-07-11T11:47:47Z")

</div>

I am aware of the erode/dilate and opening/closing functionality in the Images package, but is there an equivalent to Matlab’s imfill to fill image regions and holes?

---

## [Problem with rendering animations with Plots.jl + GR backend](https://discourse.julialang.org/t/problem-with-rendering-animations-with-plots-jl-gr-backend/4661)

<div class="topic-metadata">

**Author:** [@CrocoDuck](https://discourse.julialang.org/u/CrocoDuck)\
**Replies:** 11\
**Last updated:** [July 6, 2017, 5:55pm UTC](https://discourse.julialang.org/t/problem-with-rendering-animations-with-plots-jl-gr-backend/4661 "2017-07-06T17:55:42Z")

</div>

Hi there! I have been trying to get a gif file demonstrating the comb filtering resulting from delayed sinusoidal signals superposition. This is the code: using Plots gr(size = (1200, 800)) Fₛ = 96000 # Sample R…

---

## [Using FileIO/MeshIO to save a HomogenousMesh](https://discourse.julialang.org/t/using-fileio-meshio-to-save-a-homogenousmesh/4594)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 4\
**Last updated:** [July 3, 2017, 1:57am UTC](https://discourse.julialang.org/t/using-fileio-meshio-to-save-a-homogenousmesh/4594 "2017-07-03T01:57:17Z")

</div>

I wasn’t able to find a documented function in FileIO or MeshIO that takes in a file name and a HomogenousMesh and writes an obj, ply or svg file. After some digging, I found the following function which simply crashes J…

---

## [Elastoplasticity from SIGGRAPH 2017](https://discourse.julialang.org/t/elastoplasticity-from-siggraph-2017/4584)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 2\
**Last updated:** [July 1, 2017, 8:03pm UTC](https://discourse.julialang.org/t/elastoplasticity-from-siggraph-2017/4584 "2017-07-01T20:03:09Z")

</div>

kinda wonderful to see that this is become technique. While not veridical, to my eye it is real-adjacent. Here is the video. Here is the paper. \[much of the math may be well covered by Julia packages\] exerpted from …

---

## [Creating a color map legend from a lookup table](https://discourse.julialang.org/t/creating-a-color-map-legend-from-a-lookup-table/4461)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 7\
**Last updated:** [June 28, 2017, 8:18pm UTC](https://discourse.julialang.org/t/creating-a-color-map-legend-from-a-lookup-table/4461 "2017-06-28T20:18:29Z")

</div>

I would like to create a color map legend that shows the value associated with each color displayed in another drawing. Let’s say I have the scalar to color mapping, is there an off-the-shelf function in Julia to draw so…

---

## [Converting an animation from GR to Plots](https://discourse.julialang.org/t/converting-an-animation-from-gr-to-plots/4131)

<div class="topic-metadata">

**Author:** [@martindemello](https://discourse.julialang.org/u/martindemello)\
**Replies:** 1\
**Last updated:** [June 20, 2017, 9:36pm UTC](https://discourse.julialang.org/t/converting-an-animation-from-gr-to-plots/4131 "2017-06-20T21:36:24Z")

</div>

I’m trying to figure out animations in Plots.jl. I started off by porting a double pendulum simulation from the GR examples \[https://github.com/jheinen/gr/blob/master/examples/double\_pendulum.py\], refactored a bit so it …

---

## [You may currently need to call backends explicitly when using Plots](https://discourse.julialang.org/t/you-may-currently-need-to-call-backends-explicitly-when-using-plots/4302)

<div class="topic-metadata">

**Author:** [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Replies:** 0\
**Last updated:** [June 16, 2017, 12:07pm UTC](https://discourse.julialang.org/t/you-may-currently-need-to-call-backends-explicitly-when-using-plots/4302 "2017-06-16T12:07:55Z")

</div>

Not sure where to put this package-specific announcement, but I figured it would save some people a headache to make it visible. Since the change to 0.6 there is a persistent issue with world age in Plots, particularly …

---

## [Heatmap of a dataframe](https://discourse.julialang.org/t/heatmap-of-a-dataframe/4272)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 12\
**Last updated:** [June 15, 2017, 5:43am UTC](https://discourse.julialang.org/t/heatmap-of-a-dataframe/4272 "2017-06-15T05:43:29Z")

</div>

It seems that StatPlots doesn’t support making a heatmap of an all-numeric dataframe. Would that be a reasonable addition to the package?

---

## [Board Game interface which library?](https://discourse.julialang.org/t/board-game-interface-which-library/4221)

<div class="topic-metadata">

**Author:** [@Foolius](https://discourse.julialang.org/u/Foolius)\
**Replies:** 7\
**Last updated:** [June 14, 2017, 8:35pm UTC](https://discourse.julialang.org/t/board-game-interface-which-library/4221 "2017-06-14T20:35:14Z")

</div>

I wan to program some kind of board game but I don’t know how to do the graphics. I want some simple mechanic to show unicode symbols at 2d-coordinates and process mouse and keyboard events. What I found so far are wrap…

---

## [How to get rid of scientific format numbers with Plots+pgfplots](https://discourse.julialang.org/t/how-to-get-rid-of-scientific-format-numbers-with-plots-pgfplots/4240)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 7\
**Last updated:** [June 14, 2017, 6:04am UTC](https://discourse.julialang.org/t/how-to-get-rid-of-scientific-format-numbers-with-plots-pgfplots/4240 "2017-06-14T06:04:40Z")

</div>

MWE: using Plots pgfplots() x = collect(linspace(0.01,0.5,100)) p = plot(histogram(x)) savefig(p, "/tmp/x.pdf") The 0.05 label on the x axis shows up as 5⋅10⁻², which messes up the alignment. This is a more serious pro…

---

## [Combining 3D scatter plot with a 3D heat map](https://discourse.julialang.org/t/combining-3d-scatter-plot-with-a-3d-heat-map/4250)

<div class="topic-metadata">

**Author:** [@jdnz](https://discourse.julialang.org/u/jdnz)\
**Replies:** 3\
**Last updated:** [June 13, 2017, 7:43pm UTC](https://discourse.julialang.org/t/combining-3d-scatter-plot-with-a-3d-heat-map/4250 "2017-06-13T19:43:47Z")

</div>

I am trying to create a 3D visualization of a laser passing through a cloud of atoms. I attempted to do this using the GLVisualize backend for Plots.jl in the following way: using GLVisualize, Plots glvisualize() x = li…

---

## [How to add title to legend in Plots.jl?](https://discourse.julialang.org/t/how-to-add-title-to-legend-in-plots-jl/2018)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 16\
**Last updated:** [June 12, 2017, 9:32am UTC](https://discourse.julialang.org/t/how-to-add-title-to-legend-in-plots-jl/2018 "2017-06-12T09:32:56Z")

</div>

Is it possible? If yes, which backends support it?

---

## [Anyone successfully used OpenCV in Windows?](https://discourse.julialang.org/t/anyone-successfully-used-opencv-in-windows/4154)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 0\
**Last updated:** [June 8, 2017, 12:50am UTC](https://discourse.julialang.org/t/anyone-successfully-used-opencv-in-windows/4154 "2017-06-08T00:50:33Z")

</div>

I was very excited to see access to OpenCV via Julia but have had a bit of a run-around trying to get it to work. When trying to build the package, I get an error related to the Cxx.jl package that was flagged here. This…

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

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