# Visualization

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

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

**Page:** 98

---

## [How to put the legend outside of the plot area in Plots?](https://discourse.julialang.org/t/how-to-put-the-legend-outside-of-the-plot-area-in-plots/1027)

<div class="topic-metadata">

**Author:** [@Ali\_Vahdati](https://discourse.julialang.org/u/Ali_Vahdati)\
**Replies:** 0\
**Last updated:** [December 18, 2016, 5:42pm UTC](https://discourse.julialang.org/t/how-to-put-the-legend-outside-of-the-plot-area-in-plots/1027 "2016-12-18T17:42:42Z")

</div>

In PyPlot, we can use bbox\_to\_anchor option. What is an equivalent in Plots?

---

## [Why isn't the default directory of savefig() the folder where the file is?](https://discourse.julialang.org/t/why-isnt-the-default-directory-of-savefig-the-folder-where-the-file-is/847)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 18\
**Last updated:** [December 17, 2016, 3:20pm UTC](https://discourse.julialang.org/t/why-isnt-the-default-directory-of-savefig-the-folder-where-the-file-is/847 "2016-12-17T15:20:21Z")

</div>

Hello, I expected the default directory for saving a figure is the same folder where the file is and found that this is not the case. So I have to specify a directory each time and it’s not very convenient for other use…

---

## [Problems with GR](https://discourse.julialang.org/t/problems-with-gr/777)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 0\
**Last updated:** [December 7, 2016, 10:22am UTC](https://discourse.julialang.org/t/problems-with-gr/777 "2016-12-07T10:22:47Z")

</div>

How do you close a figure created using GR? I plotted the Bessel.jl example but I can’t get it to close. Graphing from the REPL doesn’t look as nice as plotting in IJulia. vs Julia Version 0.5.0 (2016-09-19 18:14 …

---

## [Pie color with plots](https://discourse.julialang.org/t/pie-color-with-plots/755)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 1\
**Last updated:** [December 6, 2016, 7:31pm UTC](https://discourse.julialang.org/t/pie-color-with-plots/755 "2016-12-06T19:31:54Z")

</div>

How do I choose the colors of the parts of the pie with the plots package? I tried pie(\["1", "2", "3"\], \[.4, .1, .5\], fillcolor = \[:red, :green, :blue\]) so as to get the three pieces in red, green and blue, but the pie…

---

## [Variable in legends](https://discourse.julialang.org/t/variable-in-legends/716)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 8\
**Last updated:** [December 5, 2016, 1:09pm UTC](https://discourse.julialang.org/t/variable-in-legends/716 "2016-12-05T13:09:20Z")

</div>

I’m trying to add legends using Latex as follows: using PyPlot m = 100 xx = collect(linspace(-1.0, 1.0, 100)) yy = sin(m\*xx) zz = collect(linspace(-5, 3.0, 100)) figure(1) clf() h1, h2 = plot(xx, yy, "b.", xx, zz, "r…

---

## [PyPlot: Individually-colored points possible?](https://discourse.julialang.org/t/pyplot-individually-colored-points-possible/696)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 3\
**Last updated:** [December 5, 2016, 10:51am UTC](https://discourse.julialang.org/t/pyplot-individually-colored-points-possible/696 "2016-12-05T10:51:51Z")

</div>

Using PyPlot, what is a good way of plotting points which have individual colors? I don’t want to do a LineCollection, partly because I tried and it didn’t work. Basically every idea I have seems like a hack (scatter pl…

---

## [Imagesc in Julia v0.5](https://discourse.julialang.org/t/imagesc-in-julia-v0-5/519)

<div class="topic-metadata">

**Author:** [@robertdj](https://discourse.julialang.org/u/robertdj)\
**Replies:** 9\
**Last updated:** [December 3, 2016, 12:30pm UTC](https://discourse.julialang.org/t/imagesc-in-julia-v0-5/519 "2016-12-03T12:30:11Z")

</div>

Up to and including Julia v0.4 I have been using Winston for plotting, but I am experiencing problems in v0.5 and hence I am starting to use other packages. One particular thing I miss is the imagesc function for viewin…

---

## [Publication-ready plots](https://discourse.julialang.org/t/publication-ready-plots/618)

<div class="topic-metadata">

**Author:** [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Replies:** 7\
**Last updated:** [November 28, 2016, 8:01pm UTC](https://discourse.julialang.org/t/publication-ready-plots/618 "2016-11-28T20:01:25Z")

</div>

Hello, is there any “how-to” concerning publication-ready plots? For example, I used these commands, but only got a 600x400 pixels png. using Plots default(show = true) plot(rand(10,4), linestyle=\[:solid :dash\]) savef…

---

## [Plots.jl: multiple plots in same subplot](https://discourse.julialang.org/t/plots-jl-multiple-plots-in-same-subplot/602)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 4\
**Last updated:** [November 28, 2016, 1:34pm UTC](https://discourse.julialang.org/t/plots-jl-multiple-plots-in-same-subplot/602 "2016-11-28T13:34:42Z")

</div>

The documentation has several examples of how to plot several traces of the same length on either the same or different plots and it is easier to overlook the fact that one can modify an existing plot also with the comma…

---

## [OpenGL 3.3 testing on Travis](https://discourse.julialang.org/t/opengl-3-3-testing-on-travis/571)

<div class="topic-metadata">

**Author:** [@barche](https://discourse.julialang.org/u/barche)\
**Replies:** 3\
**Last updated:** [November 27, 2016, 5:21pm UTC](https://discourse.julialang.org/t/opengl-3-3-testing-on-travis/571 "2016-11-27T17:21:23Z")

</div>

I’m trying to run some OpenGL tests on Travis in xvfb, but it seems the OpenGL version is 3.0 while I need 3.3 at least. Does anyone here happen to be running a travis config that accomplishes this? My current travis fil…

---

## [Display Plots.jl plot in Juliabox](https://discourse.julialang.org/t/display-plots-jl-plot-in-juliabox/451)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 8\
**Last updated:** [November 21, 2016, 2:54pm UTC](https://discourse.julialang.org/t/display-plots-jl-plot-in-juliabox/451 "2016-11-21T14:54:53Z")

</div>

I am using Plots.jl with PlotlyJS backend in Juliabox and I find myself in the situation of calling add\_plot to add a trace at the time. I then call gui() at the end of the cell to display the plot. The following code us…

---

## [Second yaxis in Plots using backend plotlyjs()](https://discourse.julialang.org/t/second-yaxis-in-plots-using-backend-plotlyjs/446)

<div class="topic-metadata">

**Author:** [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Replies:** 2\
**Last updated:** [November 20, 2016, 2:30pm UTC](https://discourse.julialang.org/t/second-yaxis-in-plots-using-backend-plotlyjs/446 "2016-11-20T14:30:08Z")

</div>

I am trying to create a plot in Plots for the backend plotlyjs() as follows: Base plot is a function Func1 with a normal x and y axis. The overlay plot created with plot! for a second function Func2 has the same x axis…

---

## [Create two unrelated plots in one script](https://discourse.julialang.org/t/create-two-unrelated-plots-in-one-script/426)

<div class="topic-metadata">

**Author:** [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)\
**Replies:** 6\
**Last updated:** [November 19, 2016, 12:19pm UTC](https://discourse.julialang.org/t/create-two-unrelated-plots-in-one-script/426 "2016-11-19T12:19:09Z")

</div>

The following script generates two unrelated plots that I desire to place into one plot pane, or possibly two plot panes. I do not want them to lay on top of each other because they are unrelated ie. (sub plots will not…

---

## [Avoid repeating tick labels with subplots in Plots.jl](https://discourse.julialang.org/t/avoid-repeating-tick-labels-with-subplots-in-plots-jl/351)

<div class="topic-metadata">

**Author:** [@swt30](https://discourse.julialang.org/u/swt30)\
**Replies:** 4\
**Last updated:** [November 16, 2016, 4:49pm UTC](https://discourse.julialang.org/t/avoid-repeating-tick-labels-with-subplots-in-plots-jl/351 "2016-11-16T16:49:28Z")

</div>

I’m making grids of subplots in Plots.jl by composing several plots together: using Plots default(legend=false, tickfont=font(12)) x = -6:0.1:6 plots = map(f -\> plot(x, f(x), title=string(f), tickfont=font(12)), \[sin, c…

---

## [Visualization in Julia](https://discourse.julialang.org/t/visualization-in-julia/195)

<div class="topic-metadata">

**Author:** [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Replies:** 5\
**Last updated:** [November 9, 2016, 4:16pm UTC](https://discourse.julialang.org/t/visualization-in-julia/195 "2016-11-09T16:16:57Z")

</div>

Discussion/questions related to plotting and visualization in Julia.

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