# Visualization

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

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

**Page:** 79

---

## [Issues setting palette to matlplotlib's "tab10" colors](https://discourse.julialang.org/t/issues-setting-palette-to-matlplotlibs-tab10-colors/38661)

<div class="topic-metadata">

**Author:** [@Rouzaire](https://discourse.julialang.org/u/Rouzaire)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 5:01pm UTC](https://discourse.julialang.org/t/issues-setting-palette-to-matlplotlibs-tab10-colors/38661 "2020-05-22T17:01:08Z")

</div>

Hello, I’ve been trying to plot curves with the colors of matplotlib’s palette :tab10 but I can’t find the solution, even after removing and reinstalling Plots and ColorSchemes. Here are the desired colors : When …

---

## [Can't seem to change PyPlot latex font](https://discourse.julialang.org/t/cant-seem-to-change-pyplot-latex-font/39886)

<div class="topic-metadata">

**Author:** [@KK\_JuliaNoob](https://discourse.julialang.org/u/KK_JuliaNoob)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 12:28am UTC](https://discourse.julialang.org/t/cant-seem-to-change-pyplot-latex-font/39886 "2020-05-22T00:28:23Z")

</div>

I’m trying to recreate a plot I made in Python (attached) using PyPlot in Julia. I can’t seem to get the tick font and the x- and y- label fonts to match the ones in Python (Computer Modern I presume). Here are the…

---

## [PyPlot set facecolor](https://discourse.julialang.org/t/pyplot-set-facecolor/39794)

<div class="topic-metadata">

**Author:** [@qwerytyui1234](https://discourse.julialang.org/u/qwerytyui1234)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 5:57pm UTC](https://discourse.julialang.org/t/pyplot-set-facecolor/39794 "2020-05-20T17:57:55Z")

</div>

Can anyone get this code to work? using Plots pyplot() fig, ax = PyPlot.subplots(facecolor=(0.5,0.2,0.5)) ax.plot(rand(10)) fig This code runs without any error message, but for some reason the background color for t…

---

## [InexactError: trunc(Int64, NaN) while using theme(:mute) in plots](https://discourse.julialang.org/t/inexacterror-trunc-int64-nan-while-using-theme-mute-in-plots/39640)

<div class="topic-metadata">

**Author:** [@SarthakDsh](https://discourse.julialang.org/u/SarthakDsh)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 8:08pm UTC](https://discourse.julialang.org/t/inexacterror-trunc-int64-nan-while-using-theme-mute-in-plots/39640 "2020-05-17T20:08:41Z")

</div>

I have the following code using Plots gr() theme(:mute) x1 =200:0.1:300.0 plot(x1,rand(length(x1))) which produces the following error InexactError: trunc(Int64, NaN) Stacktrace: \[1\] trunc at .\\float.jl:703 \[inline…

---

## [Weird font displaying in Plots](https://discourse.julialang.org/t/weird-font-displaying-in-plots/39590)

<div class="topic-metadata">

**Author:** [@mjyshin](https://discourse.julialang.org/u/mjyshin)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 4:25pm UTC](https://discourse.julialang.org/t/weird-font-displaying-in-plots/39590 "2020-05-16T16:25:25Z")

</div>

I am not sure what happened, since I have been using Plots for years without too many issues. But since a few days ago, my plots have been displaying this strange font. All I remember doing right beforehand was updating …

---

## [Weird interplay between scale and lightposition in Makie](https://discourse.julialang.org/t/weird-interplay-between-scale-and-lightposition-in-makie/39363)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 4:33pm UTC](https://discourse.julialang.org/t/weird-interplay-between-scale-and-lightposition-in-makie/39363 "2020-05-13T16:33:12Z")

</div>

I was drawing a surface plot of some configuration of a quantum system, using the following code: using Makie l = w = 30.0 p = m = 120 x=l\*\[(i-0.5)/p-0.5 for i = 1:p\] #x ranges in (-15,15) y=w\*\[(i-0.5)/m-0.5 for i …

---

## [PackageCompiler Executable - Plots not showing up](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630)

<div class="topic-metadata">

**Author:** [@mtwhite4](https://discourse.julialang.org/u/mtwhite4)\
**Replies:** 4\
**Last updated:** [December 25, 2019, 6:11am UTC](https://discourse.julialang.org/t/packagecompiler-executable-plots-not-showing-up/32630 "2019-12-25T06:11:46Z")

</div>

Hi all, I just figured out how to compile my code into an executable using PackageCompiler. This has worked great. However, upon running the code, none of the plot windows show up. For my project it is necessary that th…

---

## [How to make dynamic plots with slider bars](https://discourse.julialang.org/t/how-to-make-dynamic-plots-with-slider-bars/30698)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [May 10, 2020, 7:09pm UTC](https://discourse.julialang.org/t/how-to-make-dynamic-plots-with-slider-bars/30698 "2020-05-10T19:09:46Z")

</div>

I have a routine that given some arguments outputs a plot. I would like to create an interface where I can change each argument using a slider bar and the plot would update in real-time. Is there a package that allows su…

---

## [Error encountered for Geom.density2d with logarithmic scale in Gadfly](https://discourse.julialang.org/t/error-encountered-for-geom-density2d-with-logarithmic-scale-in-gadfly/38460)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 7\
**Last updated:** [May 8, 2020, 5:06pm UTC](https://discourse.julialang.org/t/error-encountered-for-geom-density2d-with-logarithmic-scale-in-gadfly/38460 "2020-05-08T17:06:46Z")

</div>

Gadfly displayed error when trying to do Geom.density2d with logarithmic axis/scale. Code below. The first two plots are OK, but not the third plot. using Gadfly x = \[0.025, 0.028, 0.035, 0.036, 0.037, 0.039, 0.039, 0.…

---

## [Showing shaded areas in StatPlots](https://discourse.julialang.org/t/showing-shaded-areas-in-statplots/24803)

<div class="topic-metadata">

**Author:** [@nik.ltin](https://discourse.julialang.org/u/nik.ltin)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 7:40am UTC](https://discourse.julialang.org/t/showing-shaded-areas-in-statplots/24803 "2020-05-08T07:40:16Z")

</div>

Hi everyone. I have a time-series dataset which I’ve plotted in Julia using StatPlots.jl, and now would like to impose these grey bars on the plot to emphasize certain periods of time (such as wars/recessions etc.), I’ve…

---

## [Inexact error when plotting, possibly due to small value changes?](https://discourse.julialang.org/t/inexact-error-when-plotting-possibly-due-to-small-value-changes/38953)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 1:36pm UTC](https://discourse.julialang.org/t/inexact-error-when-plotting-possibly-due-to-small-value-changes/38953 "2020-05-07T13:36:02Z")

</div>

Please see the following MWE below for an issue I am currently facing, I have raised an issue on the Plots.jl repo as well but thought I would ask the community in case people have seen similar bugs, I noted some similar…

---

## [A “Gallery” of fractal rendered mainly with Julia](https://discourse.julialang.org/t/a-gallery-of-fractal-rendered-mainly-with-julia/37435)

<div class="topic-metadata">

**Author:** [@HaoLi111](https://discourse.julialang.org/u/HaoLi111)\
**Replies:** 5\
**Last updated:** [April 12, 2020, 11:28pm UTC](https://discourse.julialang.org/t/a-gallery-of-fractal-rendered-mainly-with-julia/37435 "2020-04-12T23:28:03Z")

</div>

As I mentioned before, Julia has some natural advantages to create fractals and the site below has a collection. And some codes are shared https://galleryinfractaldimension-temp.weebly.com/blog However, I think the co…

---

## [After update 2 hours before plot doesn't work anymore](https://discourse.julialang.org/t/after-update-2-hours-before-plot-doesnt-work-anymore/38880)

<div class="topic-metadata">

**Author:** [@DKad](https://discourse.julialang.org/u/DKad)\
**Replies:** 6\
**Last updated:** [May 6, 2020, 1:36pm UTC](https://discourse.julialang.org/t/after-update-2-hours-before-plot-doesnt-work-anymore/38880 "2020-05-06T13:36:29Z")

</div>

Hello, after update my plot function hangs. Simply typing using Plots plot(rand(10)) the REPL hangs and I can only recover with an explicitely kill of julia. I have done an Pkg.update(), there has been an update of…

---

## [Scatterplot with marginal histograms](https://discourse.julialang.org/t/scatterplot-with-marginal-histograms/37619)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 35\
**Last updated:** [May 5, 2020, 12:53am UTC](https://discourse.julialang.org/t/scatterplot-with-marginal-histograms/37619 "2020-05-05T00:53:36Z")

</div>

Any idea how to do scatterplot with marginal histograms in Gadfly or Plots. Preference is Gadfly. Found similar post in forum below, but it was done in R/ggplot2. Technically, each histograms may have (normalized) cumula…

---

## [Scatter plots with annotations of points](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 1:07pm UTC](https://discourse.julialang.org/t/scatter-plots-with-annotations-of-points/37887 "2020-05-04T13:07:32Z")

</div>

Dear All, I would like to visualize the output of UMAP in form of a scatterplot, such that when I hover on points, it would show some additional information in textual form (or rendered HTML would be super nice). Thank…

---

## [Gadfly - error if shape count more than 15](https://discourse.julialang.org/t/gadfly-error-if-shape-count-more-than-15/38727)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 11:47am UTC](https://discourse.julialang.org/t/gadfly-error-if-shape-count-more-than-15/38727 "2020-05-04T11:47:52Z")

</div>

Gadfly shows error if plot has more than 15 shapes (limit!). See code below. using Gadfly x = \[0.025, 0.028, 0.035, 0.036, 0.037, 0.039, 0.039, 0.041, 0.041, 0.041, 0.042, 0.043, 0.045, 0.047, 0.049, 0.051, 0.053, 0.05…

---

## [Extract coordinates from a specific contour](https://discourse.julialang.org/t/extract-coordinates-from-a-specific-contour/38393)

<div class="topic-metadata">

**Author:** [@Cristian\_Suciava](https://discourse.julialang.org/u/Cristian_Suciava)\
**Replies:** 6\
**Last updated:** [May 2, 2020, 6:38pm UTC](https://discourse.julialang.org/t/extract-coordinates-from-a-specific-contour/38393 "2020-05-02T18:38:30Z")

</div>

I am new with Julia. Is there a library, a way, to extract cartesian coordinates from a drawing? At the end I need an array with point from a drawing.

---

## [Plots with string xaxis and y-errorbars gives error](https://discourse.julialang.org/t/plots-with-string-xaxis-and-y-errorbars-gives-error/37228)

<div class="topic-metadata">

**Author:** [@transarcus](https://discourse.julialang.org/u/transarcus)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 11:48am UTC](https://discourse.julialang.org/t/plots-with-string-xaxis-and-y-errorbars-gives-error/37228 "2020-04-30T11:48:24Z")

</div>

Plotting a bar plot with text as the xaxis gives me an error where it didn’t use to. I’m using Julia 1.4 and plots v1.0.5 plot(\[“a”,“b”\],\[10,2\],yerr=\[1,1\],st=:bar) gives the error “Cannot convert an object of type Strin…

---

## [Visualizing Jacobians/Gradients(?) - How's this?](https://discourse.julialang.org/t/visualizing-jacobians-gradients-hows-this/36799)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 7:22pm UTC](https://discourse.julialang.org/t/visualizing-jacobians-gradients-hows-this/36799 "2020-04-29T19:22:08Z")

</div>

I’ve been studying calculus and in the online course I’m following, the instructor says (in relation to a plot of a particular function): the Jacobian is simply a vector that we can calculate for each location on this …

---

## [On-the-fly Animation in IJulia Notebooks](https://discourse.julialang.org/t/on-the-fly-animation-in-ijulia-notebooks/524)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 45\
**Last updated:** [April 27, 2020, 1:25am UTC](https://discourse.julialang.org/t/on-the-fly-animation-in-ijulia-notebooks/524 "2020-04-27T01:25:21Z")

</div>

I recently revisited how to do on-the-fly visualisation in an IJulia notebook, i.e., plotting results while the computation is still running. This was discussed a while back in Google groups link I’ve tried the same sch…

---

## [Statistic errors for histograms with Plots recipes](https://discourse.julialang.org/t/statistic-errors-for-histograms-with-plots-recipes/37327)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 5\
**Last updated:** [April 25, 2020, 4:36pm UTC](https://discourse.julialang.org/t/statistic-errors-for-histograms-with-plots-recipes/37327 "2020-04-25T16:36:56Z")

</div>

I would love to have a recipe for Plots.jl that creates a histogram with xerror of the size of the bin, and yerror according to e.g. sqrt(h.weight). So, there are two problems: x-errors do not show up. The scatterhis…

---

## [How to test plot recipes?](https://discourse.julialang.org/t/how-to-test-plot-recipes/2648)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 3:29pm UTC](https://discourse.julialang.org/t/how-to-test-plot-recipes/2648 "2020-04-24T15:29:29Z")

</div>

Plot recipes can reduce the test coverage considerably. For example, my coverage is currently at 76% and a big part of the remaining 24% is due to a plot recipe: Codecov How should I go about testing plot recipes? Is th…

---

## [An exemple in order to save figures generated by PGFPlotsX](https://discourse.julialang.org/t/an-exemple-in-order-to-save-figures-generated-by-pgfplotsx/38120)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 10:20am UTC](https://discourse.julialang.org/t/an-exemple-in-order-to-save-figures-generated-by-pgfplotsx/38120 "2020-04-24T10:20:53Z")

</div>

Julia 1.4.1 \*Kubuntu 18.04 LST \* LaTeX + textlive-full (including LuaLaTeX) + ImageMagik Documentation: PGFPlotsX.jl by Kristoffer Carlsson Hello dear all, Say that I am using an elementary code as follows, extracte…

---

## [Plots.jl legend: spacing between symbol and text](https://discourse.julialang.org/t/plots-jl-legend-spacing-between-symbol-and-text/38079)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 2:01pm UTC](https://discourse.julialang.org/t/plots-jl-legend-spacing-between-symbol-and-text/38079 "2020-04-23T14:01:23Z")

</div>

Hi, is it possible to adjust the spacing between the symol and the text in the legend with Plot.jl? MWE: plot(\[1,2,3\], linewidth=5, legend=true, legendfontsize=30, ) produces Can the spacing between the…

---

## [Scatter plot](https://discourse.julialang.org/t/scatter-plot/37987)

<div class="topic-metadata">

**Author:** [@AmandaPS22](https://discourse.julialang.org/u/AmandaPS22)\
**Replies:** 9\
**Last updated:** [April 23, 2020, 12:00am UTC](https://discourse.julialang.org/t/scatter-plot/37987 "2020-04-23T00:00:41Z")

</div>

Hi, I’m new to the JULIA language and I’m having trouble plotting a scatter plot. The command entered was: using PyPlot scatter(X.d, X.b, facecolor = “none”, edgecolors=“orange”, s=20, label=“xxx”) Then an error me…

---

## [Multiple subplots using StatsPlots](https://discourse.julialang.org/t/multiple-subplots-using-statsplots/37990)

<div class="topic-metadata">

**Author:** [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 12:20am UTC](https://discourse.julialang.org/t/multiple-subplots-using-statsplots/37990 "2020-04-22T00:20:32Z")

</div>

Hello, splitting my hair around this and now I need some help. I’m sure it’s straightforward, but I can’t find the answer! Here’s a MWE. It’s a list of subplots that creates multiple qqplot over random values. using S…

---

## [Gadfly - non-logarithmic number format for axis in logarithmic scale](https://discourse.julialang.org/t/gadfly-non-logarithmic-number-format-for-axis-in-logarithmic-scale/37944)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 9\
**Last updated:** [April 21, 2020, 11:34pm UTC](https://discourse.julialang.org/t/gadfly-non-logarithmic-number-format-for-axis-in-logarithmic-scale/37944 "2020-04-21T23:34:54Z")

</div>

Something that I missed from Excel chart. Notice the y axis is logarithmic scale, but the number label is non logarithmic. Below is the best I got from Gadfly. The method to set axis limit is also not that friendly. C…

---

## [Free legend placing](https://discourse.julialang.org/t/free-legend-placing/37910)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 11:28pm UTC](https://discourse.julialang.org/t/free-legend-placing/37910 "2020-04-21T23:28:35Z")

</div>

Hi, is it possible to place the legend using an exact position and not being restricted to :top, :bottom etc with Plots.jl and the pyplot backend? MWE: plot(\[1,2,3\], legend = (2,2) ) Somethink similar for placing th…

---

## [Gadfly Layer Order (Geom.point and Geom.line)](https://discourse.julialang.org/t/gadfly-layer-order-geom-point-and-geom-line/37798)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 22\
**Last updated:** [April 21, 2020, 12:11am UTC](https://discourse.julialang.org/t/gadfly-layer-order-geom-point-and-geom-line/37798 "2020-04-21T00:11:33Z")

</div>

In Gadfly, I have multiple layers (expensive, I know) - a combination of Geom.point and Geom.line (from function). I tried (Compositing · Gadfly.jl) to arrange/ order such that the line is on top, but unsuccessful. Any i…

---

## [Plots.jl set figure size for LaTeX publications](https://discourse.julialang.org/t/plots-jl-set-figure-size-for-latex-publications/36960)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 17\
**Last updated:** [April 20, 2020, 4:43pm UTC](https://discourse.julialang.org/t/plots-jl-set-figure-size-for-latex-publications/36960 "2020-04-20T16:43:42Z")

</div>

Hi, I want to use Plots.jl to make figures for a publication. I want the width of the figure to be exactly 246.0 points (pt). The format should be pdf. I want to do this, so I can import the pdf figure into LaTeX later …

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

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