# \#pgfplotsx

**URL:** https://discourse.julialang.org/tag/pgfplotsx/529.md?match_all_tags=true&page=1&tags%5B%5D=pgfplotsx

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

**Page:** 2

---

## [Adding labels to surfaces in the same figure](https://discourse.julialang.org/t/adding-labels-to-surfaces-in-the-same-figure/79708)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 4\
**Last updated:** [April 21, 2022, 3:53pm UTC](https://discourse.julialang.org/t/adding-labels-to-surfaces-in-the-same-figure/79708 "2022-04-21T15:53:43Z")

</div>

Hi all, how do I add labels to the surfaces below? Using label= as when plotting curves in 2d does not work. There’s very few information on attributes to surface() and I can’t find a solution anywhere else for this simp…

---

## [PGFPlotsX: annotate outside plot area](https://discourse.julialang.org/t/pgfplotsx-annotate-outside-plot-area/58357)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 5\
**Last updated:** [April 9, 2022, 10:47am UTC](https://discourse.julialang.org/t/pgfplotsx-annotate-outside-plot-area/58357 "2022-04-09T10:47:52Z")

</div>

How can I put annotations outside the plotting area of a plot in PGFPlotsX? Example: using Plots pgfplotsx(grid=:false) scatter(rand(5),rand(5),xlim=\[0,1\],ylim=\[0,1\]) annotate!(0.5,0.5,text("inside plot")) annotate!(0,…

---

## [How is it possible to show "links/alingments" between 2 sets of points using PGFPlotsX.jl?](https://discourse.julialang.org/t/how-is-it-possible-to-show-links-alingments-between-2-sets-of-points-using-pgfplotsx-jl/76776)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 1\
**Last updated:** [February 20, 2022, 11:36am UTC](https://discourse.julialang.org/t/how-is-it-possible-to-show-links-alingments-between-2-sets-of-points-using-pgfplotsx-jl/76776 "2022-02-20T11:36:42Z")

</div>

I am working on point cloud alignment model and want to show the initial alignment vs the final alignment on a 2d dataset. I also want to show the alignment between point pairs just for curiosity. For demonstration purp…

---

## [Wrapping label text in Plots.jl](https://discourse.julialang.org/t/wrapping-label-text-in-plots-jl/76124)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 9\
**Last updated:** [February 10, 2022, 5:26pm UTC](https://discourse.julialang.org/t/wrapping-label-text-in-plots-jl/76124 "2022-02-10T17:26:12Z")

</div>

I have a plot of only two lines with long legend labels. The plot doesn’t have enough horizontal space unless the labels are wrapped. How do I do that? I’m using pgfplotsx() backend in Plots.jl for LaTeX-style plots, so…

---

## [How to pass colors from xcolor in pgfplotsx?](https://discourse.julialang.org/t/how-to-pass-colors-from-xcolor-in-pgfplotsx/75190)

<div class="topic-metadata">

**Author:** [@ccmejia](https://discourse.julialang.org/u/ccmejia)\
**Replies:** 1\
**Last updated:** [January 25, 2022, 9:42pm UTC](https://discourse.julialang.org/t/how-to-pass-colors-from-xcolor-in-pgfplotsx/75190 "2022-01-25T21:42:07Z")

</div>

Hi there, I am trying to pass color name from xcolor latex package, for example the “NavyBlue” color. However, it seems that “NavyBlue” or any other “special” color is not recognized: Package xcolor Error: Undefined col…

---

## [PGFPlotsX a matrix of RGB](https://discourse.julialang.org/t/pgfplotsx-a-matrix-of-rgb/24709)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 9\
**Last updated:** [June 7, 2019, 11:58am UTC](https://discourse.julialang.org/t/pgfplotsx-a-matrix-of-rgb/24709 "2019-06-07T11:58:44Z")

</div>

I have an image – a matrix of RGBs. The number of pixels is relatively small (e.g. 20×20), so I want to plot it as an array of colored squares. This way the dimensions of the resulting figure won’t be dictated by the low…

---

## [Plots color based on discrete value](https://discourse.julialang.org/t/plots-color-based-on-discrete-value/72472)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 4\
**Last updated:** [January 18, 2022, 10:40am UTC](https://discourse.julialang.org/t/plots-color-based-on-discrete-value/72472 "2022-01-18T10:40:38Z")

</div>

data = DataFrame(x=1:5,y=1:5,color=\["a","a","b","a","c"\]) using StatsPlots @df data scatter(:x,:y) How can add color to the plot using the discrete value of column :color automatically? In ggplot I can do something lik…

---

## [PGFPlotsX in Visual Studio](https://discourse.julialang.org/t/pgfplotsx-in-visual-studio/73734)

<div class="topic-metadata">

**Author:** [@clizama](https://discourse.julialang.org/u/clizama)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 11:02pm UTC](https://discourse.julialang.org/t/pgfplotsx-in-visual-studio/73734 "2021-12-28T23:02:12Z")

</div>

Hi, I’m trying to plot using Plots.jl with PGFPlotsX.jl as a backend in Visual Studio. I have this error message: No LaTeX installation found, figures will not be generated. Make sure either pdflatex or lualatex are i…

---

## [\[VSCode\] Plot pane is not working for PGFPlotsX](https://discourse.julialang.org/t/vscode-plot-pane-is-not-working-for-pgfplotsx/68171)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 5:13pm UTC](https://discourse.julialang.org/t/vscode-plot-pane-is-not-working-for-pgfplotsx/68171 "2021-12-06T17:13:32Z")

</div>

Hi everyone, I’m trying to plot some graphs on the plot pane on VSCode. I have toggled on the Use Plot Pane option as below: Unfortunately, everytime I type td or display(td) in the Julia REPL after the following …

---

## [PGFPlotsX.jl Tex Capacity Exceeded](https://discourse.julialang.org/t/pgfplotsx-jl-tex-capacity-exceeded/69697)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 6:56pm UTC](https://discourse.julialang.org/t/pgfplotsx-jl-tex-capacity-exceeded/69697 "2021-10-13T18:56:18Z")

</div>

Hi, I did a complex 3d chart in PGFPlotsX.jl. I tried to use it within a figure environment in latex, by including the .tikz version of the chart with \\begin{figure}\[!t\] \\input{./img/chart.tikz} \\end{figure} However,…

---

## [Relative barmode in PGFPlotsX.jl](https://discourse.julialang.org/t/relative-barmode-in-pgfplotsx-jl/68095)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 4\
**Last updated:** [September 18, 2021, 2:43pm UTC](https://discourse.julialang.org/t/relative-barmode-in-pgfplotsx-jl/68095 "2021-09-18T14:43:04Z")

</div>

Hi, I am trying to make a bar chart in PGFPlotsX.jl with the same properties of the PlotlyJS bar charts with relative barmode. I was not able to find an example neither in the PGFPlots.jl gallery, nor in the Plots.jl do…

---

## [Unable to change the tick font size when using ticks = :native with Plots.jl and pgfplotsx backend](https://discourse.julialang.org/t/unable-to-change-the-tick-font-size-when-using-ticks-native-with-plots-jl-and-pgfplotsx-backend/68106)

<div class="topic-metadata">

**Author:** [@deepakvinod](https://discourse.julialang.org/u/deepakvinod)\
**Replies:** 15\
**Last updated:** [September 17, 2021, 1:34pm UTC](https://discourse.julialang.org/t/unable-to-change-the-tick-font-size-when-using-ticks-native-with-plots-jl-and-pgfplotsx-backend/68106 "2021-09-17T13:34:45Z")

</div>

I am relatively new to Julia (coming from python and matplotlib) and have been trying to generate some plots for a project I am working on. It seems to be a known issue that Plots.jl does not produce ticks when there ar…

---

## [How to avoid clipping points at plot boundaries?](https://discourse.julialang.org/t/how-to-avoid-clipping-points-at-plot-boundaries/68150)

<div class="topic-metadata">

**Author:** [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Replies:** 6\
**Last updated:** [September 14, 2021, 5:25pm UTC](https://discourse.julialang.org/t/how-to-avoid-clipping-points-at-plot-boundaries/68150 "2021-09-14T17:25:08Z")

</div>

Hi there, I have defined axis limits such that I have ticks at the boundaries of my plot. But data points whose values correspond to the limits are clipped at the plot boundaries. In R, one can prevent this by using coo…

---

## [How to fix the rotated label position in this plot?](https://discourse.julialang.org/t/how-to-fix-the-rotated-label-position-in-this-plot/68025)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 7\
**Last updated:** [September 12, 2021, 9:54am UTC](https://discourse.julialang.org/t/how-to-fix-the-rotated-label-position-in-this-plot/68025 "2021-09-12T09:54:12Z")

</div>

Hi, I cannot figure how to correct the position of the rotated xticks label in the following plot: using Plots a=\["absmax\_global", "absmax\_global\_ref", "absmax\_local"\] b=\[0.03953348557784052, 1.0667377825188347, 1.9650…

---

## [Having second axis in pgfplotsx](https://discourse.julialang.org/t/having-second-axis-in-pgfplotsx/67315)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 12:06am UTC](https://discourse.julialang.org/t/having-second-axis-in-pgfplotsx/67315 "2021-08-30T00:06:55Z")

</div>

is it possible to have second axis for x and y when using PGFPlotsX.jl? thanks

---

## [Pgfplotsx TypeError after fresh install](https://discourse.julialang.org/t/pgfplotsx-typeerror-after-fresh-install/58596)

<div class="topic-metadata">

**Author:** [@OlafTeichert](https://discourse.julialang.org/u/OlafTeichert)\
**Replies:** 9\
**Last updated:** [August 11, 2021, 3:50pm UTC](https://discourse.julialang.org/t/pgfplotsx-typeerror-after-fresh-install/58596 "2021-08-11T15:50:16Z")

</div>

I just reinstalled Julia on a new laptop and am getting an error when using the pgfsplotsx backend. Here is a minimum reproducible example: using Plots pgfplotsx() plot(\[1,2,3,4,5\]) Resulting in the following error me…

---

## [A question about drawing](https://discourse.julialang.org/t/a-question-about-drawing/66140)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 2:51am UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140 "2021-08-11T02:51:43Z")

</div>

p1 = range(0, 360; length = 100)' # parameter 1 p2 = range(0, 360; length = 70) # parameter 2 w1 = @. sind(3\*(p1 + 2 \* p2)) + 1.25 # wave 1 w2 = @. 6 + w1 \* cosd(p1) # wave 2 x = vec(@. w2 \* cosd(p2)) y = ve…

---

## [PGFPlotsX remove legend box (border)](https://discourse.julialang.org/t/pgfplotsx-remove-legend-box-border/44992)

<div class="topic-metadata">

**Author:** [@AAL](https://discourse.julialang.org/u/AAL)\
**Replies:** 8\
**Last updated:** [June 15, 2021, 2:12pm UTC](https://discourse.julialang.org/t/pgfplotsx-remove-legend-box-border/44992 "2021-06-15T14:12:44Z")

</div>

Hi, I am trying to remove the legend box in a plot with the pgfplotsx backend and I cannot find the right attribute. I know I can easily remove the box in the generated tex file (see here) but I would like to be able to…

---

## [Add legend titles for distinct categories in Plots](https://discourse.julialang.org/t/add-legend-titles-for-distinct-categories-in-plots/62804)

<div class="topic-metadata">

**Author:** [@Dan.phi](https://discourse.julialang.org/u/Dan.phi)\
**Replies:** 4\
**Last updated:** [June 13, 2021, 1:53pm UTC](https://discourse.julialang.org/t/add-legend-titles-for-distinct-categories-in-plots/62804 "2021-06-13T13:53:48Z")

</div>

Is it possible to have legend titles for different categories/classes? Something like in the figure below with continent and pop.

---

## [Unicode error with Plots.jl and PGFPlotsX](https://discourse.julialang.org/t/unicode-error-with-plots-jl-and-pgfplotsx/53070)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 1\
**Last updated:** [June 13, 2021, 12:15pm UTC](https://discourse.julialang.org/t/unicode-error-with-plots-jl-and-pgfplotsx/53070 "2021-06-13T12:15:58Z")

</div>

Using Plots with PGFPlotsX backend I get strange substitutions for some characters in the tex file. For example, this code plot( title = "Interpolação polinomial" ) savefig("fig.tex") generates a file f…

---

## [Plots.jl - Controlling dash pattern with PGFPlotsx Backend](https://discourse.julialang.org/t/plots-jl-controlling-dash-pattern-with-pgfplotsx-backend/55332)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 0\
**Last updated:** [February 15, 2021, 4:21pm UTC](https://discourse.julialang.org/t/plots-jl-controlling-dash-pattern-with-pgfplotsx-backend/55332 "2021-02-15T16:21:36Z")

</div>

I encountered following problem. The default settings of pgfplots produce dashed lines which are indistinguishable from dotted lines at larger line widths. Consider the MWE using Plots pgfplotsx() plot(x -\> sin(x), line…

---

## [Ternary axis with PGFplotsX?](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 2\
**Last updated:** [June 5, 2021, 6:14pm UTC](https://discourse.julialang.org/t/ternary-axis-with-pgfplotsx/62442 "2021-06-05T18:14:23Z")

</div>

Is there any way to use ternary axes in PGFplotsX.i had a stab at passing in raw latex arguments. But I guess it probably won’t be possible, since the choice of axis type is specified by choice of function eg Axis(args) …

---

## [Plots.jl PGFplotsX backend is a massive boon for Julia](https://discourse.julialang.org/t/plots-jl-pgfplotsx-backend-is-a-massive-boon-for-julia/61699)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 12\
**Last updated:** [May 26, 2021, 7:36am UTC](https://discourse.julialang.org/t/plots-jl-pgfplotsx-backend-is-a-massive-boon-for-julia/61699 "2021-05-26T07:36:39Z")

</div>

There’s a lot of talk of Makie replacing plots.jl. I get it. I’ve just started using Makie and I think it’s great. However, I’ve also just started realising the power of PGFplotsX as a plots/statsplots backend. For a sta…

---

## [Annotations with Plots.jl and PGFPlotsX using plot!(add=..., extra\_kwargs=:subplots)](https://discourse.julialang.org/t/annotations-with-plots-jl-and-pgfplotsx-using-plot-add-extra-kwargs-subplots/61323)

<div class="topic-metadata">

**Author:** [@tapia](https://discourse.julialang.org/u/tapia)\
**Replies:** 0\
**Last updated:** [May 17, 2021, 8:47pm UTC](https://discourse.julialang.org/t/annotations-with-plots-jl-and-pgfplotsx-using-plot-add-extra-kwargs-subplots/61323 "2021-05-17T20:47:12Z")

</div>

Hi, I am relatively new to julia and Plots, but have a solid background with matplotlib and TikZ. I have been using Plots.jl for the last few days together with the PGFPlotX backend and I really like it. One think that I…

---

## [PGFPlotsX dependency ArgCheck](https://discourse.julialang.org/t/pgfplotsx-dependency-argcheck/60979)

<div class="topic-metadata">

**Author:** [@GregR](https://discourse.julialang.org/u/GregR)\
**Replies:** 8\
**Last updated:** [May 11, 2021, 11:36pm UTC](https://discourse.julialang.org/t/pgfplotsx-dependency-argcheck/60979 "2021-05-11T23:36:57Z")

</div>

It looks like the package ArgCheck.jl got deregistered, or whatever happens when the Package Manager doesn’t know about a package. So this breaks PGFPlotsX. I am using Julia 1.6.1. But the github repository is here: …

---

## [Using Plots, pgfplotsx(), multi-line ylabel?](https://discourse.julialang.org/t/using-plots-pgfplotsx-multi-line-ylabel/51140)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [December 2, 2020, 8:16pm UTC](https://discourse.julialang.org/t/using-plots-pgfplotsx-multi-line-ylabel/51140 "2020-12-02T20:16:29Z")

</div>

For some reason using “\\n” has not worked for me? Could anyone show me a way of doing it? Kind regards

---

## [Plots (pgfplotsx) change label from Column -\> Line](https://discourse.julialang.org/t/plots-pgfplotsx-change-label-from-column-line/50009)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 2\
**Last updated:** [November 11, 2020, 11:32pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-change-label-from-column-line/50009 "2020-11-11T23:32:05Z")

</div>

A great thanks for the introduction of PgfPlotsX into Plots making the plotting accessible to everybody. I would need to transform the Label from 1 column to multiple column. This feature is particularly useful when usi…

---

## [PGFPlotsX.jl to LaTeX](https://discourse.julialang.org/t/pgfplotsx-jl-to-latex/49449)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 4\
**Last updated:** [November 2, 2020, 11:31am UTC](https://discourse.julialang.org/t/pgfplotsx-jl-to-latex/49449 "2020-11-02T11:31:19Z")

</div>

Hi everyone, I am want to try using PGFPlotsX.jl via Plots.jl to export .tex files that are to be included in my LyX document. But if I try to use \\input{myplot.tex} in my file, I get the following error messages: I …

---

## [Plots -\> PgfPlotsX: Easiest way to insert top title?](https://discourse.julialang.org/t/plots-pgfplotsx-easiest-way-to-insert-top-title/48761)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 8:59pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-easiest-way-to-insert-top-title/48761 "2020-10-21T20:59:08Z")

</div>

Hi! I want to insert a “top title” / “group title”, something like this: Picture taken from Layouts · Plots but I edited it in paint to insert the title. Is there any easy way of doing this? Kind regards

---

## [Plots -\> PgfPlotsX: Making a completely empty plot?](https://discourse.julialang.org/t/plots-pgfplotsx-making-a-completely-empty-plot/48750)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 3:09pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-making-a-completely-empty-plot/48750 "2020-10-21T15:09:10Z")

</div>

Hi! I want to make a plot, which is completely empty, i.e. no ticks, no axes, no legend, no nothing. The reason is I am making a group plot, where sometimes I only have 5 plots to fill out 6 positions and I do not want …

[Previous page](https://discourse.julialang.org/tag/pgfplotsx/529.md?match_all_tags=true&tags%5B%5D=pgfplotsx)

[Next page](https://discourse.julialang.org/tag/pgfplotsx/529.md?match_all_tags=true&page=2&tags%5B%5D=pgfplotsx)
