# Visualization

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

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

**Page:** 78

---

## [How to reduce bar padding in horizontal bar plotting?](https://discourse.julialang.org/t/how-to-reduce-bar-padding-in-horizontal-bar-plotting/42039)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 3:40pm UTC](https://discourse.julialang.org/t/how-to-reduce-bar-padding-in-horizontal-bar-plotting/42039 "2020-06-25T15:40:22Z")

</div>

How can I set the bar padding in bar ? using Plots kDiff = \[-0.4665307712613753, 1.3988034802362372, 0.26964352271121106, 1.9321483556515853, 0.027055373158908935, -0.2508916681408131\] sentences = \["Industrie", "Noeffec…

---

## [FreeBSD GR download link missing](https://discourse.julialang.org/t/freebsd-gr-download-link-missing/24241)

<div class="topic-metadata">

**Author:** [@Rob\_van\_Weelderen](https://discourse.julialang.org/u/Rob_van_Weelderen)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 2:10pm UTC](https://discourse.julialang.org/t/freebsd-gr-download-link-missing/24241 "2020-06-25T14:10:41Z")

</div>

Hi there, I’m trying to install the GR plotting library on FreeBSD 12.0 (stable), but the build fails with the message (see below), of which the main complaint is: Error opening archive: Failed to open 'downloads/gr-0.…

---

## [How to plot a matrix of colors](https://discourse.julialang.org/t/how-to-plot-a-matrix-of-colors/41920)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [June 23, 2020, 4:22pm UTC](https://discourse.julialang.org/t/how-to-plot-a-matrix-of-colors/41920 "2020-06-23T16:22:50Z")

</div>

If I have a matrix with colors: color\_matrix = \[:red :red; :red :blue\] how do I do to plot this in a 2d plot, showing the corresponding colors? E.g., if I had color\_matrix = \[:blue :white :red; :blue :white :red\] I …

---

## [Plotting lines from Contours.jl](https://discourse.julialang.org/t/plotting-lines-from-contours-jl/41923)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 9:37am UTC](https://discourse.julialang.org/t/plotting-lines-from-contours-jl/41923 "2020-06-23T09:37:11Z")

</div>

x = range(-50,50,length=1000) y = range(0,30,length=1000) f(x,y) = x/3+log(1000+((x-10)^2+(2y)^2-15^2)^2); z = f.(transpose(x), y) contour(x, y, z, levels=0:2.5:40, fill=(true, cgrad(:matter, categorical = true)), cl…

---

## [How to paste an image from the system clipboard (MS Windows) in a Gtk canvas?](https://discourse.julialang.org/t/how-to-paste-an-image-from-the-system-clipboard-ms-windows-in-a-gtk-canvas/41912)

<div class="topic-metadata">

**Author:** [@frangonve](https://discourse.julialang.org/u/frangonve)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 3:54am UTC](https://discourse.julialang.org/t/how-to-paste-an-image-from-the-system-clipboard-ms-windows-in-a-gtk-canvas/41912 "2020-06-23T03:54:31Z")

</div>

I want to paste an image from the system clipboard (MS Windows) in a Gtk canvas. As far as I know InteractiveUtils.clipboard only works with text. Cheers.

---

## [From Julia to VR](https://discourse.julialang.org/t/from-julia-to-vr/4950)

<div class="topic-metadata">

**Author:** [@Loic\_Chappaz](https://discourse.julialang.org/u/Loic_Chappaz)\
**Replies:** 11\
**Last updated:** [June 22, 2020, 9:54pm UTC](https://discourse.julialang.org/t/from-julia-to-vr/4950 "2020-06-22T21:54:15Z")

</div>

Hi all, I am not quite sure this is the best place for this discussion so fee free to let me know and I’ll move that somewhere more appropriate if needed. Put simply, I want to know if there exists already or if some p…

---

## [Change the label in plot](https://discourse.julialang.org/t/change-the-label-in-plot/41808)

<div class="topic-metadata">

**Author:** [@m.lavaiyan](https://discourse.julialang.org/u/m.lavaiyan)\
**Replies:** 6\
**Last updated:** [June 21, 2020, 12:30pm UTC](https://discourse.julialang.org/t/change-the-label-in-plot/41808 "2020-06-21T12:30:37Z")

</div>

Hello, I am looking for an efficient way to change the label from to something like operation1 operation2 operation3 … but not with the manual labeling as bellow. Because for a more number of operations it see…

---

## [VegaLite Overlay](https://discourse.julialang.org/t/vegalite-overlay/41640)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 3\
**Last updated:** [June 19, 2020, 4:59pm UTC](https://discourse.julialang.org/t/vegalite-overlay/41640 "2020-06-19T16:59:13Z")

</div>

I have a scatter plot of data in VegaLite. I’d like to overlay a regression line on this plot. Is there a way to do this? df |\> @vlplot(:point, x = :Years, y = :Overall, width = 500, height = 500) Can I just add the …

---

## [Handle numerical values as categories in plots](https://discourse.julialang.org/t/handle-numerical-values-as-categories-in-plots/41256)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 4\
**Last updated:** [June 17, 2020, 4:57pm UTC](https://discourse.julialang.org/t/handle-numerical-values-as-categories-in-plots/41256 "2020-06-17T16:57:58Z")

</div>

I am trying to plot boxplots of values with respect to 4 categories represented as numbers. The four categories are powers of two: 16384, 32768, 65536, 131072. Let’s use this MWE dataframe: using DataFrames, StatsPlots…

---

## [Can I draw dot lines with GraphRecipes.jl?](https://discourse.julialang.org/t/can-i-draw-dot-lines-with-graphrecipes-jl/41495)

<div class="topic-metadata">

**Author:** [@larrylan](https://discourse.julialang.org/u/larrylan)\
**Replies:** 0\
**Last updated:** [June 16, 2020, 4:17am UTC](https://discourse.julialang.org/t/can-i-draw-dot-lines-with-graphrecipes-jl/41495 "2020-06-16T04:17:06Z")

</div>

Greetings, I’m trying to use GraphRecipes to draw networks because I can spot nodes with their specific coordinates with GraphRecipes, e.g. this simple example GitHub - JuliaPlots/GraphRecipes.jl: Graph-related recipes …

---

## [Implementing recipes on a per package basis?](https://discourse.julialang.org/t/implementing-recipes-on-a-per-package-basis/41198)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [June 12, 2020, 1:24pm UTC](https://discourse.julialang.org/t/implementing-recipes-on-a-per-package-basis/41198 "2020-06-12T13:24:38Z")

</div>

I recently started thinking about an alternative strategy to improving the end user experience in the plotting ecosystem. Is it correct that the recipe system nowadays is decoupled from Plots.jl? For instance, could an a…

---

## [Gadfly Geom.ribbon bounded left and right - Feature Request](https://discourse.julialang.org/t/gadfly-geom-ribbon-bounded-left-and-right-feature-request/39161)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 1:12am UTC](https://discourse.julialang.org/t/gadfly-geom-ribbon-bounded-left-and-right-feature-request/39161 "2020-06-12T01:12:06Z")

</div>

Current implementation of Geom.ribbon is to draw a ribbon at the positions in x bounded above and below by ymax and ymin. Is it possible to draw a ribbon at the positions in y bounded left and right by xmax and xmin? T…

---

## [Interactive Data Visualization](https://discourse.julialang.org/t/interactive-data-visualization/41133)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 9\
**Last updated:** [June 11, 2020, 1:20pm UTC](https://discourse.julialang.org/t/interactive-data-visualization/41133 "2020-06-11T13:20:26Z")

</div>

I have a bunch of data for several different companies. I’m interested in creating an interactive data visualization that I can share with colleagues. Ideally I’d have a drop down to select company (or other interesting …

---

## [Bar plot with offset array](https://discourse.julialang.org/t/bar-plot-with-offset-array/41122)

<div class="topic-metadata">

**Author:** [@m.lavaiyan](https://discourse.julialang.org/u/m.lavaiyan)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 10:29am UTC](https://discourse.julialang.org/t/bar-plot-with-offset-array/41122 "2020-06-11T10:29:42Z")

</div>

Hi everyone, I want to plot a bar chart an array that starts from index 0. when I use plot() it works fine but when I use bar() it gives this error. How can I plot the bar chart? Thanks for any help! using JuMP, Stat…

---

## [Trying to solve a second order differential eqution](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-eqution/41160)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 8:01am UTC](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-eqution/41160 "2020-06-11T08:01:34Z")

</div>

Hello, Each time that I am trying to use PGFPlotsX (sinc a few days) I obtain this kind of error: ERROR: LoadError: ArgumentError: Package PGFPLotsX not found in current path: - Run \`import Pkg; Pkg.add("PGFPLotsX")\` t…

---

## [Does Plots.jl/StatsPlots.jl have an equivalent to GadFly's Geom.subplot\_grid?](https://discourse.julialang.org/t/does-plots-jl-statsplots-jl-have-an-equivalent-to-gadflys-geom-subplot-grid/40594)

<div class="topic-metadata">

**Author:** [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 2:47am UTC](https://discourse.julialang.org/t/does-plots-jl-statsplots-jl-have-an-equivalent-to-gadflys-geom-subplot-grid/40594 "2020-06-10T02:47:56Z")

</div>

I’m looking for functionality similar to subplot\_grid in Gadfly.jl (Geom.subplot\_grid · Gadfly.jl), where grids of subplots can be given broader x/y labels. I would use Gadfly but all my other visualization is already u…

---

## [Graphical Exploratory Data Analysis in Julia with VegaLite/Gadfly/Plots](https://discourse.julialang.org/t/graphical-exploratory-data-analysis-in-julia-with-vegalite-gadfly-plots/40488)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 34\
**Last updated:** [June 9, 2020, 6:54pm UTC](https://discourse.julialang.org/t/graphical-exploratory-data-analysis-in-julia-with-vegalite-gadfly-plots/40488 "2020-06-09T18:54:21Z")

</div>

I use R quite a bit for exploratory data analysis, data munging, visualization, and model fitting. I’m trying to simultaneously teach myself how to use Julia in this context, and write some tutorials. Here are some typi…

---

## [Gadfly Geom.line not in order](https://discourse.julialang.org/t/gadfly-geom-line-not-in-order/41019)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 8\
**Last updated:** [June 9, 2020, 5:43am UTC](https://discourse.julialang.org/t/gadfly-geom-line-not-in-order/41019 "2020-06-09T05:43:31Z")

</div>

I produced a table that I then plotted. The plot is all wonky though, the values have mixed themselves up to make a perfect line. See below. graph = plot(a, x = :Years\_mean, y = :Overall\_mean, Geom.line) How do I g…

---

## [Pcolormesh equivalence in Plots?](https://discourse.julialang.org/t/pcolormesh-equivalence-in-plots/40941)

<div class="topic-metadata">

**Author:** [@axidio](https://discourse.julialang.org/u/axidio)\
**Replies:** 4\
**Last updated:** [June 8, 2020, 10:37pm UTC](https://discourse.julialang.org/t/pcolormesh-equivalence-in-plots/40941 "2020-06-08T22:37:19Z")

</div>

Is there a pcolormesh equivalence in Plots? I need to plot data in the format x1 y1 z1 x2 y2 z2 … where the (x, y) grid is not a rectangle. So heatmap is not an option. Thank you!

---

## [Displaying video on a rotating cube](https://discourse.julialang.org/t/displaying-video-on-a-rotating-cube/40920)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [June 7, 2020, 10:57am UTC](https://discourse.julialang.org/t/displaying-video-on-a-rotating-cube/40920 "2020-06-07T10:57:09Z")

</div>

When the SGI O2 workstation was introduced (ahem) years ago one of the impressive for the time demos was to display moving video on the faces of a wireframe cube which was being rotated on the screen. My memory may be fa…

---

## [Relation between Makie.jl and Plots.jl](https://discourse.julialang.org/t/relation-between-makie-jl-and-plots-jl/40731)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [June 4, 2020, 11:51pm UTC](https://discourse.julialang.org/t/relation-between-makie-jl-and-plots-jl/40731 "2020-06-04T23:51:42Z")

</div>

There was a similar question asked a year ago, here Current state of the relationship between Plots and Makie. I am just curious of what is the relation between the two plotting libraries at the moment. I know that Plot…

---

## [Can a PlotlyJS plot be exported in a form that includes pan/zoom interactivity?](https://discourse.julialang.org/t/can-a-plotlyjs-plot-be-exported-in-a-form-that-includes-pan-zoom-interactivity/40685)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 5\
**Last updated:** [June 3, 2020, 6:47pm UTC](https://discourse.julialang.org/t/can-a-plotlyjs-plot-be-exported-in-a-form-that-includes-pan-zoom-interactivity/40685 "2020-06-03T18:47:04Z")

</div>

Hi, I’m using PlotlyJS to explore some lengthy time series data, and it would be great if I could export a plot with the zoom/pan interactivity. I would like to give it to someone who doesn’t have Julia, as a web page t…

---

## [PlotlyJS example failure](https://discourse.julialang.org/t/plotlyjs-example-failure/40479)

<div class="topic-metadata">

**Author:** [@Honza9723](https://discourse.julialang.org/u/Honza9723)\
**Replies:** 9\
**Last updated:** [June 3, 2020, 5:19pm UTC](https://discourse.julialang.org/t/plotlyjs-example-failure/40479 "2020-06-03T17:19:03Z")

</div>

Dear All, I would like to ask for help/advice with following problem. Previously, I used PlotlyJS on Julia 1.1.1 for plotting 3D objects. Unfortunately, after upgrading to Julia 1.4.2 (I deleted Atom + Julia and re-inst…

---

## [Animation from data points (arrays)](https://discourse.julialang.org/t/animation-from-data-points-arrays/40642)

<div class="topic-metadata">

**Author:** [@Joey](https://discourse.julialang.org/u/Joey)\
**Replies:** 4\
**Last updated:** [June 3, 2020, 12:24pm UTC](https://discourse.julialang.org/t/animation-from-data-points-arrays/40642 "2020-06-03T12:24:48Z")

</div>

Hello, everyone. I recently switched from MATLAB to Julia, and I do not know a lot of stuff about plotting in Julia. It is a really simple problem yet unclear to me: I need to build a 3d animation out of a set of data p…

---

## [Makie: How to hide axes while plotting text](https://discourse.julialang.org/t/makie-how-to-hide-axes-while-plotting-text/40604)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 7\
**Last updated:** [June 2, 2020, 3:25pm UTC](https://discourse.julialang.org/t/makie-how-to-hide-axes-while-plotting-text/40604 "2020-06-02T15:25:13Z")

</div>

As I was starting to lose hope in the future of Julia in terms of applicability, I happened to discover Makie.jl and I am loving it so far. A small question I’d like to ask is how one might hide axes, if only plotting t…

---

## [Visualize discontinuous Galerkin](https://discourse.julialang.org/t/visualize-discontinuous-galerkin/40522)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 0\
**Last updated:** [May 31, 2020, 10:09pm UTC](https://discourse.julialang.org/t/visualize-discontinuous-galerkin/40522 "2020-05-31T22:09:00Z")

</div>

Is there any existing convenient method to visualize the results of discontinuous Galerkin finite element data? Would prefer something similar to Makie’s mesh method, but other packages are fine also.

---

## [Link axes in Plots.jl](https://discourse.julialang.org/t/link-axes-in-plots-jl/40426)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 2\
**Last updated:** [May 29, 2020, 8:46pm UTC](https://discourse.julialang.org/t/link-axes-in-plots-jl/40426 "2020-05-29T20:46:55Z")

</div>

I want to plot the projections of a 2d map on the right and below the 2d plot, but if I show the colorbar the axis are not aligned anymore. How can I align the axes? Is there a way to place the colorbar in the bottom r…

---

## [Blank plots from Gadfly in Juno](https://discourse.julialang.org/t/blank-plots-from-gadfly-in-juno/39975)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 7\
**Last updated:** [May 28, 2020, 10:03pm UTC](https://discourse.julialang.org/t/blank-plots-from-gadfly-in-juno/39975 "2020-05-28T22:03:46Z")

</div>

I’m trying out Gadfly because I want to be able to zoom and pan on some data, and I’m having trouble getting plots to display in Juno. I’m using this example from the tutorial: using Gadfly, RDatasets iris = dataset("d…

---

## [Some more basic plots with Plots.jl for illustrating calculous and linear algebra books, but can we write better plotting codes?](https://discourse.julialang.org/t/some-more-basic-plots-with-plots-jl-for-illustrating-calculous-and-linear-algebra-books-but-can-we-write-better-plotting-codes/40168)

<div class="topic-metadata">

**Author:** [@HaoLi111](https://discourse.julialang.org/u/HaoLi111)\
**Replies:** 0\
**Last updated:** [May 26, 2020, 6:40am UTC](https://discourse.julialang.org/t/some-more-basic-plots-with-plots-jl-for-illustrating-calculous-and-linear-algebra-books-but-can-we-write-better-plotting-codes/40168 "2020-05-26T06:40:52Z")

</div>

I started re-making the plots to illustrate some mathematical ideas. The repo is for illustrating the basic ideas through easily created plots and animations and the use and tuning of parameters of Plots.jl This is le…

---

## [Full border with ticks](https://discourse.julialang.org/t/full-border-with-ticks/25060)

<div class="topic-metadata">

**Author:** [@Milo\_Guerrero](https://discourse.julialang.org/u/Milo_Guerrero)\
**Replies:** 11\
**Last updated:** [May 25, 2020, 10:03pm UTC](https://discourse.julialang.org/t/full-border-with-ticks/25060 "2020-05-25T22:03:46Z")

</div>

Hello, Im a using the plots library with gr(), I’ve tried to obtain a graphic with full border and ticks but I don’t know how, my last try is: plot(equation, markershape = :hexagon,xticks = ( \[0:5:100;\], \["\\\\theta", "2\\…

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

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