# Visualization

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

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

**Page:** 83

---

## [Sparse matrix pattern?](https://discourse.julialang.org/t/sparse-matrix-pattern/31928)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [December 6, 2019, 11:49am UTC](https://discourse.julialang.org/t/sparse-matrix-pattern/31928 "2019-12-06T11:49:52Z")

</div>

Is there a Plots command similar to MATLAB’s spy command to plot the sparsity pattern of a sparse matrix?

---

## [How to splice two time series into one in a plot?](https://discourse.julialang.org/t/how-to-splice-two-time-series-into-one-in-a-plot/31902)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 17\
**Last updated:** [December 5, 2019, 4:33pm UTC](https://discourse.julialang.org/t/how-to-splice-two-time-series-into-one-in-a-plot/31902 "2019-12-05T16:33:44Z")

</div>

Hello, I have two differential equation time series (sol and sol2). sol\[end\] is used as the starting values for sol2. I would like to plot these two on the same plot, if possible, like so. I can graph them separatel…

---

## [Plots.jl: Assigning seriescolor using ColorGradient for line plot](https://discourse.julialang.org/t/plots-jl-assigning-seriescolor-using-colorgradient-for-line-plot/17099)

<div class="topic-metadata">

**Author:** [@Micah\_BL](https://discourse.julialang.org/u/Micah_BL)\
**Replies:** 14\
**Last updated:** [December 5, 2019, 11:58am UTC](https://discourse.julialang.org/t/plots-jl-assigning-seriescolor-using-colorgradient-for-line-plot/17099 "2019-12-05T11:58:40Z")

</div>

I am having trouble using a ColorGradient to set the color levels of a dynamic number of series. I can get the colorgradient to work if I use heatmap: A = \[i for i=1:100, j=1:100\] heatmap(A, c=ColorGradient(:inferno)) …

---

## [\[Plots\] Efficient scatter plot of a 2×N Array](https://discourse.julialang.org/t/plots-efficient-scatter-plot-of-a-2xn-array/31803)

<div class="topic-metadata">

**Author:** [@4aHxKzD](https://discourse.julialang.org/u/4aHxKzD)\
**Replies:** 6\
**Last updated:** [December 3, 2019, 11:24pm UTC](https://discourse.julialang.org/t/plots-efficient-scatter-plot-of-a-2xn-array/31803 "2019-12-03T23:24:58Z")

</div>

When we want to plot a series of points we simply write: points = rand(10000) scatter(points) this assumes a y = rand(10000) and x = 1:10000. From the Official documentation - Argument Passing Behavior Julia functio…

---

## [Setup standard values for PrettyTables](https://discourse.julialang.org/t/setup-standard-values-for-prettytables/31693)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 6\
**Last updated:** [December 1, 2019, 5:57pm UTC](https://discourse.julialang.org/t/setup-standard-values-for-prettytables/31693 "2019-12-01T17:57:53Z")

</div>

I didn’t see any of it in the manual. You tell me: is there a way to set standard values for PrettyTables? For example, you always want blue borders, or always a simple layout, and so on. If you merely want some quick …

---

## [PrettyTables; DataFrames: Combination](https://discourse.julialang.org/t/prettytables-dataframes-combination/31674)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 2:38pm UTC](https://discourse.julialang.org/t/prettytables-dataframes-combination/31674 "2019-11-30T14:38:48Z")

</div>

If you do this #df is some DataFrame #pipe the first 10 rows to be formatted with PrettyTables first(df, 10) |\> pretty\_table you get the expected outcome. But I seek (e.g.) this: #pick first 10 rows, print with Prett…

---

## [Weird behaviour on contour plot update](https://discourse.julialang.org/t/weird-behaviour-on-contour-plot-update/31572)

<div class="topic-metadata">

**Author:** [@Andre\_Mello](https://discourse.julialang.org/u/Andre_Mello)\
**Replies:** 10\
**Last updated:** [November 29, 2019, 2:45pm UTC](https://discourse.julialang.org/t/weird-behaviour-on-contour-plot-update/31572 "2019-11-29T14:45:05Z")

</div>

It seems like if the differences in the contour levels are too small, updating the plot breaks its colors. Here’s a MWE to make things clearer. using Plots x = -0.1:0.01:0.1 y = -0.1:0.01:0.1 z = \[i^2+j^2 for i in x, …

---

## [Update existing plot instead of showing a new one](https://discourse.julialang.org/t/update-existing-plot-instead-of-showing-a-new-one/31630)

<div class="topic-metadata">

**Author:** [@maximilianpreisinger](https://discourse.julialang.org/u/maximilianpreisinger)\
**Replies:** 1\
**Last updated:** [November 29, 2019, 9:53am UTC](https://discourse.julialang.org/t/update-existing-plot-instead-of-showing-a-new-one/31630 "2019-11-29T09:53:12Z")

</div>

Hi guys, the whole plotting stuff very confuses me. For example I manage to display my plot with Plots.jl with the plotlyjs backend (it opens a new browser tab and shows my plot), and I am happy with it. However I do no…

---

## [New Julia user seeking feedback on an in-progress project](https://discourse.julialang.org/t/new-julia-user-seeking-feedback-on-an-in-progress-project/31410)

<div class="topic-metadata">

**Author:** [@otde](https://discourse.julialang.org/u/otde)\
**Replies:** 5\
**Last updated:** [November 28, 2019, 8:16pm UTC](https://discourse.julialang.org/t/new-julia-user-seeking-feedback-on-an-in-progress-project/31410 "2019-11-28T20:16:03Z")

</div>

https://github.com/OTDE/RenderingGeometry.jl Hi folks! I’m a new Julia user transitioning from Java. Thanks to the folks in the #helpdesk channel on the Slack, I’ve been learning a lot. I’ve started work on a port of th…

---

## [Ignoring missing data when plotting](https://discourse.julialang.org/t/ignoring-missing-data-when-plotting/14124)

<div class="topic-metadata">

**Author:** [@Kryohi](https://discourse.julialang.org/u/Kryohi)\
**Replies:** 12\
**Last updated:** [November 27, 2019, 10:11pm UTC](https://discourse.julialang.org/t/ignoring-missing-data-when-plotting/14124 "2019-11-27T22:11:38Z")

</div>

Kind of a newbie question, so if this isn’t the appropriate section I’ll move it. I was trying to plot a column of a dataframe with some elements that cannot be calculated. At first I thought of initialize them to 0, a…

---

## [How to plot a subplots in PlotlyJS](https://discourse.julialang.org/t/how-to-plot-a-subplots-in-plotlyjs/31424)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 4\
**Last updated:** [November 27, 2019, 3:31am UTC](https://discourse.julialang.org/t/how-to-plot-a-subplots-in-plotlyjs/31424 "2019-11-27T03:31:05Z")

</div>

How can I use PlotlyJS.jl to make two subplots with two traces each with shared x-axis? What I have: using PlotlyJS trace1 = PlotlyJS.scatter(x=1:3, y=rand(3)) trace2 = PlotlyJS.scatter(x=1:3, y=rand(3)) trace3 = Plot…

---

## [Time tick issue on x-axis](https://discourse.julialang.org/t/time-tick-issue-on-x-axis/15643)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 7\
**Last updated:** [November 26, 2019, 10:26pm UTC](https://discourse.julialang.org/t/time-tick-issue-on-x-axis/15643 "2019-11-26T22:26:25Z")

</div>

I’m trying to plot a time-related histogram where the x-axis is times in a day, but I want the ticks to increase every 30 minutes instead of the crazy amount of ticks defaulted by Gadfly. Any other plotting package solu…

---

## [Multiple plots in Plots.jl](https://discourse.julialang.org/t/multiple-plots-in-plots-jl/31497)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 4:20pm UTC](https://discourse.julialang.org/t/multiple-plots-in-plots-jl/31497 "2019-11-25T16:20:09Z")

</div>

Why doesn’t the following work: using Plots pyplot() p=plot(layout=2) for i = 1:2 plot!(p,rand(10),subplot=i) end while the following does work: using Plots pyplot() p=plot(layout=2) plot!(p,rand(10),subplot=1) pl…

---

## [Flow Charts? LightGraphs?](https://discourse.julialang.org/t/flow-charts-lightgraphs/31139)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 11\
**Last updated:** [November 24, 2019, 1:34am UTC](https://discourse.julialang.org/t/flow-charts-lightgraphs/31139 "2019-11-24T01:34:35Z")

</div>

How hard would it be to make a quick and dirty wrapper for flow chart plots from DAGs? I gave it a whirl for a jupyter notebook blog I am writing. Didn’t come out so hot! using GraphRecipes using Plots using LightGraph…

---

## [StatsPlots dendrogram on the right side or rotated](https://discourse.julialang.org/t/statsplots-dendrogram-on-the-right-side-or-rotated/31348)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 12:39pm UTC](https://discourse.julialang.org/t/statsplots-dendrogram-on-the-right-side-or-rotated/31348 "2019-11-22T12:39:42Z")

</div>

I try to generate a heatmap with clustered rows and columns and want the dendrograms displayed on top and on the side. The top dendrogram is no problem, but I can’t find a way to create a dendrogram which is displayed fr…

---

## [Plots.jl/Makie.jl tick locations?](https://discourse.julialang.org/t/plots-jl-makie-jl-tick-locations/31371)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 7:17am UTC](https://discourse.julialang.org/t/plots-jl-makie-jl-tick-locations/31371 "2019-11-22T07:17:14Z")

</div>

I’m wondering if there is a way of specifying the location of the ticks/ labels within each x/y value - ie start, center, end. For an example application, sometimes you want the month to show as the whole period, not th…

---

## [Code for Ticks Control with Vegalite.jl](https://discourse.julialang.org/t/code-for-ticks-control-with-vegalite-jl/31134)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 9\
**Last updated:** [November 20, 2019, 1:01pm UTC](https://discourse.julialang.org/t/code-for-ticks-control-with-vegalite-jl/31134 "2019-11-20T13:01:08Z")

</div>

I tried before, searched the Vegalite.jl documentation, searched the original Vegalite documentation (and tried to convert some code), considered somewhat directly using JSON-like code, and didn’t succeed in this matter.…

---

## [Mark size in axis units with PGFPlotsX](https://discourse.julialang.org/t/mark-size-in-axis-units-with-pgfplotsx/31266)

<div class="topic-metadata">

**Author:** [@danscr](https://discourse.julialang.org/u/danscr)\
**Replies:** 7\
**Last updated:** [November 19, 2019, 12:54pm UTC](https://discourse.julialang.org/t/mark-size-in-axis-units-with-pgfplotsx/31266 "2019-11-19T12:54:11Z")

</div>

I want to plot a 3d array as a voxel grid (i.e. adjacent cubes of equal size) with PGFPlotsX. So far I got a simple solution using a 3d scatterplot with filled cubes of separate color, depending on the array value. The…

---

## [Which tools to do a chromaticity diagram?](https://discourse.julialang.org/t/which-tools-to-do-a-chromaticity-diagram/31230)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 4\
**Last updated:** [November 18, 2019, 10:05pm UTC](https://discourse.julialang.org/t/which-tools-to-do-a-chromaticity-diagram/31230 "2019-11-18T22:05:49Z")

</div>

I want to make some chromaticity diagrams (e.g.Chromaticity - Wikipedia) and am not sure which Julia graphics package would be most suitable. I’ve been looking at Luxor, Plots, Makie, and Gadfly examples and am leaning t…

---

## [Has anyone implemented slopecharts/slopegraphs/bump charts in Julia yet?](https://discourse.julialang.org/t/has-anyone-implemented-slopecharts-slopegraphs-bump-charts-in-julia-yet/31107)

<div class="topic-metadata">

**Author:** [@anon97116444](https://discourse.julialang.org/u/anon97116444)\
**Replies:** 7\
**Last updated:** [November 15, 2019, 5:10pm UTC](https://discourse.julialang.org/t/has-anyone-implemented-slopecharts-slopegraphs-bump-charts-in-julia-yet/31107 "2019-11-15T17:10:15Z")

</div>

Hi all not started with Julia YET but will do so next week. I would like to know if there is a mechanism for implementing SLOPEGRAPHS ( sometimes called bump charts) in Julia? This is an article on the form of the char…

---

## [Developing Julia interface for Plotly Dash](https://discourse.julialang.org/t/developing-julia-interface-for-plotly-dash/30533)

<div class="topic-metadata">

**Author:** [@waralex](https://discourse.julialang.org/u/waralex)\
**Replies:** 18\
**Last updated:** [November 7, 2019, 7:19am UTC](https://discourse.julialang.org/t/developing-julia-interface-for-plotly-dash/30533 "2019-11-07T07:19:09Z")

</div>

Hi. I’m new to Julia and I need a single-page interactive dashboard. So I wrote the prototype of Julia interface for Plotly Dash - package Dashboards.jl Now it has all the basic functionality of Dash - you can create …

---

## [How to set xtick names in Gadfly plots?](https://discourse.julialang.org/t/how-to-set-xtick-names-in-gadfly-plots/30795)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 2:20pm UTC](https://discourse.julialang.org/t/how-to-set-xtick-names-in-gadfly-plots/30795 "2019-11-06T14:20:50Z")

</div>

Hi all, I would like to see letters A,B,C,D in the xticks positions of the plot example below. Please, how cold I set this? using Gadfly, Random set\_default\_plot\_size(14cm, 8cm) Random.seed!(1234) plot(x=rand(10), y=ra…

---

## [Overlay plot with second plot with second y-axis to the right?](https://discourse.julialang.org/t/overlay-plot-with-second-plot-with-second-y-axis-to-the-right/6558)

<div class="topic-metadata">

**Author:** [@LotteVictor](https://discourse.julialang.org/u/LotteVictor)\
**Replies:** 9\
**Last updated:** [November 5, 2019, 4:12pm UTC](https://discourse.julialang.org/t/overlay-plot-with-second-plot-with-second-y-axis-to-the-right/6558 "2019-11-05T16:12:57Z")

</div>

Currently I’m using RCall, to plot in R, but I’m trying to switch to plotting directly in Julia (in Juno IDE, on Linux mint). I’m trying to overlay a plot I made with Plots.jl using the GR backend with a second plot with…

---

## [PGFPlotsX arrows and axes questions](https://discourse.julialang.org/t/pgfplotsx-arrows-and-axes-questions/30658)

<div class="topic-metadata">

**Author:** [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 6:00pm UTC](https://discourse.julialang.org/t/pgfplotsx-arrows-and-axes-questions/30658 "2019-11-03T18:00:13Z")

</div>

using PGFPlotsX x = range(0, 5; length = 200) y = .√x plottheme = @pgf {no\_marks, blue} @pgf TikzPicture( Axis({ xmin = -4, xmax = 4, xtick = -5:1:5, ymin = -4, ymax = 4, ytick = -5:1:5, …

---

## [Export Vegalite Plot with Basic Interactivity](https://discourse.julialang.org/t/export-vegalite-plot-with-basic-interactivity/30603)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 2\
**Last updated:** [November 2, 2019, 4:16pm UTC](https://discourse.julialang.org/t/export-vegalite-plot-with-basic-interactivity/30603 "2019-11-02T16:16:26Z")

</div>

After having opened a Vegalite plot in a compatible window, without having written any interactivity code, there is basic interactivity in the form of hovering over a piece causing information to pop up. If you save this…

---

## [Extend Axes](https://discourse.julialang.org/t/extend-axes/30340)

<div class="topic-metadata">

**Author:** [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Replies:** 1\
**Last updated:** [October 26, 2019, 6:47pm UTC](https://discourse.julialang.org/t/extend-axes/30340 "2019-10-26T18:47:32Z")

</div>

Hi. I have a function I want to graph whose domain is only 0 to infinity, but I want the plot to show the negative x axis, too. How do I tell it to do this? Right now I have: using Plots x(u) = u y(u) = sqrt(u) y2(u…

---

## [\[DIP\] K-means and Super pixels](https://discourse.julialang.org/t/dip-k-means-and-super-pixels/30243)

<div class="topic-metadata">

**Author:** [@apattyn](https://discourse.julialang.org/u/apattyn)\
**Replies:** 4\
**Last updated:** [October 25, 2019, 9:30pm UTC](https://discourse.julialang.org/t/dip-k-means-and-super-pixels/30243 "2019-10-25T21:30:32Z")

</div>

Hey everyone. I saw julia has the libraries Clustering.jl and ImageSegmentation.jl for data segmentation. I was mainly looking to do some grayscale image segmentation and I am not seeing k-means for images (e.g. K-means …

---

## [Plan of a gallery of fractal-related pattern animations with JuliaLang](https://discourse.julialang.org/t/plan-of-a-gallery-of-fractal-related-pattern-animations-with-julialang/30282)

<div class="topic-metadata">

**Author:** [@HaoLi111](https://discourse.julialang.org/u/HaoLi111)\
**Replies:** 1\
**Last updated:** [October 25, 2019, 3:48am UTC](https://discourse.julialang.org/t/plan-of-a-gallery-of-fractal-related-pattern-animations-with-julialang/30282 "2019-10-25T03:48:54Z")

</div>

With JuliaLang’s fast computing and plotting ecosystems, I decide to render some fractal patterns, and at first I tried some pedestrian example in larger scales, and tried to customize with my own taste in aesthetics. G…

---

## [Trying to get pyplot backend to Plots, but end up with GKS plots anyway](https://discourse.julialang.org/t/trying-to-get-pyplot-backend-to-plots-but-end-up-with-gks-plots-anyway/22038)

<div class="topic-metadata">

**Author:** [@NeonNeon](https://discourse.julialang.org/u/NeonNeon)\
**Replies:** 2\
**Last updated:** [October 22, 2019, 10:53am UTC](https://discourse.julialang.org/t/trying-to-get-pyplot-backend-to-plots-but-end-up-with-gks-plots-anyway/22038 "2019-10-22T10:53:27Z")

</div>

I have several problems using the Plots package together with the PyPlot backend. My exmple looks like this, I have two packages MyPlot and MyFront. In MyPlot’s environment I have added Plots and PyPlot as dependencies…

---

## [Plots.jl: add 2d histogram with logarithmic bin colors](https://discourse.julialang.org/t/plots-jl-add-2d-histogram-with-logarithmic-bin-colors/29802)

<div class="topic-metadata">

**Author:** [@Sh4pe](https://discourse.julialang.org/u/Sh4pe)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 12:22am UTC](https://discourse.julialang.org/t/plots-jl-add-2d-histogram-with-logarithmic-bin-colors/29802 "2019-10-12T00:22:43Z")

</div>

I want to use 2d histograms in Plots.jl, especially with the GR backend, that have logarithmic bin colors (log10). This appears not to be possible at the moment (or is it?). So I’ve started the very short draft PR #2208 …

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

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