# \#pythonplot

**URL:** https://discourse.julialang.org/tag/pythonplot/1305.md

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

---

## [PythonPlot not showing anything](https://discourse.julialang.org/t/pythonplot-not-showing-anything/136478)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 5\
**Last updated:** [April 1, 2026, 12:39pm UTC](https://discourse.julialang.org/t/pythonplot-not-showing-anything/136478 "2026-04-01T12:39:36Z")

</div>

Hi, I’ve just installed julia 1.12.5 on a new ubuntu box. First thing I tried was to install PythonPlot, and then on the repl using PythonPlot plot(rand(1000),randn(1000)) displays nothing at all. In old Pyplot.jl th…

---

## [PythonPlot.streamplot error](https://discourse.julialang.org/t/pythonplot-streamplot-error/136365)

<div class="topic-metadata">

**Author:** [@Wen-Wei\_Tseng](https://discourse.julialang.org/u/Wen-Wei_Tseng)\
**Replies:** 2\
**Last updated:** [March 31, 2026, 8:56am UTC](https://discourse.julialang.org/t/pythonplot-streamplot-error/136365 "2026-03-31T08:56:52Z")

</div>

Hello, I was trying to generate a stream plot using PythonPlot.jl like this example: Julia\_Examples/pyplot\_streamplot.jl at master · gizmaa/Julia\_Examples · GitHub However, I was encounter an error while running the fol…

---

## [Changing font family in Plots using pythonplot() (globally)](https://discourse.julialang.org/t/changing-font-family-in-plots-using-pythonplot-globally/135679)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 1\
**Last updated:** [February 16, 2026, 3:01pm UTC](https://discourse.julialang.org/t/changing-font-family-in-plots-using-pythonplot-globally/135679 "2026-02-16T15:01:39Z")

</div>

Specifically to “Latin Modern Roman”, to have it match the LaTeX document the plots will be used in. This seems like a simple issue, just set const PLOTS\_DEFAULTS = Dict( :theme=\>:default, :fontfamily =\> "Latin …

---

## [Pythonplot: let LaTeX render text in final document](https://discourse.julialang.org/t/pythonplot-let-latex-render-text-in-final-document/134372)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 6\
**Last updated:** [December 15, 2025, 12:19pm UTC](https://discourse.julialang.org/t/pythonplot-let-latex-render-text-in-final-document/134372 "2025-12-15T12:19:04Z")

</div>

I would like to better integrate my plots into a LaTeX document. I know about PGFPlots(X) and I really like the idea, unfortunately I could only really work with Py(thon)Plots so far, because of the lack of features in o…

---

## [Stackoverflow when loading PythonPlot](https://discourse.julialang.org/t/stackoverflow-when-loading-pythonplot/133928)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 3\
**Last updated:** [November 17, 2025, 5:02pm UTC](https://discourse.julialang.org/t/stackoverflow-when-loading-pythonplot/133928 "2025-11-17T17:02:53Z")

</div>

This seems to be a python problem, but I’ve often had problems with python that could be solved simply be deleting and re-installing the corresponding packages. So I’m thinking this might be related to how Julia uses pyt…

---

## [PythonPlot instead of PyPlot](https://discourse.julialang.org/t/pythonplot-instead-of-pyplot/133923)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 0\
**Last updated:** [November 17, 2025, 6:01am UTC](https://discourse.julialang.org/t/pythonplot-instead-of-pyplot/133923 "2025-11-17T06:01:40Z")

</div>

Hi all, I’ve been having trouble with matplotlib dependencies within my package when using PyPlot.jl – most of these errors crop up when there are upstream changes within Conda/matplotlib, that show up during the compil…

---

## [Plot gets jumbled up when a map is applied](https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995)

<div class="topic-metadata">

**Author:** [@Quantodeluz](https://discourse.julialang.org/u/Quantodeluz)\
**Replies:** 2\
**Last updated:** [October 9, 2025, 8:48pm UTC](https://discourse.julialang.org/t/plot-gets-jumbled-up-when-a-map-is-applied/132995 "2025-10-09T20:48:11Z")

</div>

I have some temperature decay data, and i’m trying to graph \\frac{T-T\_a}{T\_0-T\_a} vs t. So i applied a simple mapping: map(T-\>(T-Ta)/(df.temp\_cº\[1\]-Ta), df.temp\_cº), and it gave me this (with two different datasets): …

---

## [MicroMamba is not currently supported on your platform (FreeBSD)](https://discourse.julialang.org/t/micromamba-is-not-currently-supported-on-your-platform-freebsd/124813)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 2\
**Last updated:** [January 28, 2025, 4:02pm UTC](https://discourse.julialang.org/t/micromamba-is-not-currently-supported-on-your-platform-freebsd/124813 "2025-01-28T16:02:47Z")

</div>

I’m trying to install PythonPlot in Julia v1.11, on FreeBSD 14.2. CondaPkg and MicroMamba are giving me a problem which I don’t know how to resolve. The error report from build PythonPlot follows: julia\> err PkgPrecom…

---

## [Problem with installing PythonPlot, CondaPKG (FreeBSD)](https://discourse.julialang.org/t/problem-with-installing-pythonplot-condapkg-freebsd/125195)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 4\
**Last updated:** [January 28, 2025, 2:51am UTC](https://discourse.julialang.org/t/problem-with-installing-pythonplot-condapkg-freebsd/125195 "2025-01-28T02:51:02Z")

</div>

I posted this question micromamba a while ago, but haven’t gotten any responses. Maybe the post was in the wrong place. I am reposting here, which seems more appropriate. Thanks for any help.

---

## [Errors Using PythonCall.jl and PythonPlot.jl with a Python Virtual Environment](https://discourse.julialang.org/t/errors-using-pythoncall-jl-and-pythonplot-jl-with-a-python-virtual-environment/124084)

<div class="topic-metadata">

**Author:** [@ericdammannjr](https://discourse.julialang.org/u/ericdammannjr)\
**Replies:** 2\
**Last updated:** [December 22, 2024, 8:40pm UTC](https://discourse.julialang.org/t/errors-using-pythoncall-jl-and-pythonplot-jl-with-a-python-virtual-environment/124084 "2024-12-22T20:40:02Z")

</div>

I really have been struggling with this issue and not sure what to do. For context, I have a brand-new Windows PC, and I have Julia 1.11.2 and Python 3.13.1 installed on it. I did the following: I created a Python virtu…

---

## [Problem with contour plots in PythonPlot.jl](https://discourse.julialang.org/t/problem-with-contour-plots-in-pythonplot-jl/118435)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 2\
**Last updated:** [August 22, 2024, 1:01am UTC](https://discourse.julialang.org/t/problem-with-contour-plots-in-pythonplot-jl/118435 "2024-08-22T01:01:33Z")

</div>

With reference to my earlier post here, I have stumbled upon a bad issue. As in the earlier post, my code is as follows: using PythonPlot, LaTeXStrings, Measures, PlotThemes f(X, Y) = (100/(3\*s\*k^2))\*(((1-(X/Y)^2)^3))…

---

## [PythonPlot: use imshow instead of pcolormesh for heatmaps](https://discourse.julialang.org/t/pythonplot-use-imshow-instead-of-pcolormesh-for-heatmaps/118217)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 13\
**Last updated:** [August 16, 2024, 8:44am UTC](https://discourse.julialang.org/t/pythonplot-use-imshow-instead-of-pcolormesh-for-heatmaps/118217 "2024-08-16T08:44:08Z")

</div>

I have heatmaps to plot with julia. I sometimes use the plotlyjs backend to zoom portions of the plot, but for export I use pythonplot because all other backends I’ve tried either have problems (e.g. can’t do logarithmic…

---

## [Set a minimum level in contour plots](https://discourse.julialang.org/t/set-a-minimum-level-in-contour-plots/117907)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 9\
**Last updated:** [August 7, 2024, 11:42am UTC](https://discourse.julialang.org/t/set-a-minimum-level-in-contour-plots/117907 "2024-08-07T11:42:15Z")

</div>

I want to make a contour plot but I only want specific contours - or levels above a certain range. MWE: Pkg.add("Symbolics") Pkg.add("Plots") Pkg.add("LaTeXStrings") Pkg.add("Measures") Pkg.add("PlotThemes") using Sym…

---

## [Color gradient doesn't work](https://discourse.julialang.org/t/color-gradient-doesnt-work/111734)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [March 21, 2024, 9:39pm UTC](https://discourse.julialang.org/t/color-gradient-doesnt-work/111734 "2024-03-21T21:39:50Z")

</div>

I have a for loop. I want the color used to be evenly spaced from a color gradient such as inferno. I read various stuff online, but none works. for example trying the palette = : inferno in ax.plot of pythonplot gives: …

---

## [Pythonplot, set 2 plots with same color](https://discourse.julialang.org/t/pythonplot-set-2-plots-with-same-color/111692)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 9:36am UTC](https://discourse.julialang.org/t/pythonplot-set-2-plots-with-same-color/111692 "2024-03-16T09:36:24Z")

</div>

This little program: using PythonPlot x = \[1,2\] y = \[2,3\] fig1 = pyplot.figure() ax1 = fig1.add\_subplot(1, 1, 1) ax1.plot(x,y, '.', markersize=10) ax1.plot(x,y,'-') gives : I want to use what I would have done in…

---

## [Clearing axis cache on Julia REPL](https://discourse.julialang.org/t/clearing-axis-cache-on-julia-repl/111369)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 5\
**Last updated:** [March 9, 2024, 7:58am UTC](https://discourse.julialang.org/t/clearing-axis-cache-on-julia-repl/111369 "2024-03-09T07:58:39Z")

</div>

I have this program using PythonPlot x = \[1, 2\] y = Float64\[1.01, 1.02\] fig1 = pyplot.figure(1) ax1 = fig1.add\_subplot(1, 1, 1) plot(x, y, '.') pyplot.suptitle(L"title", fontsize=12) ax1.set\_ylabel(L"x \\ axis", fontsi…

---

## [Clear cache Julia REPL, plots](https://discourse.julialang.org/t/clear-cache-julia-repl-plots/111297)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 10:49pm UTC](https://discourse.julialang.org/t/clear-cache-julia-repl-plots/111297 "2024-03-07T22:49:19Z")

</div>

I noted that with GLMakie, Plots and PythonPlot, when I open julia repl and run include"name\_file.jl") to visualize a plot, axis stack one on top of the other. Some times this happens with legends too. Any way to clear …

---

## [Plots.jl pythonplot() matplotlib downgrading](https://discourse.julialang.org/t/plots-jl-pythonplot-matplotlib-downgrading/106599)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 9:41pm UTC](https://discourse.julialang.org/t/plots-jl-pythonplot-matplotlib-downgrading/106599 "2023-11-22T21:41:36Z")

</div>

When attempting to plot three aligned subplots in Plots.jl’s pythonplot() backend, the following error message is displayed: ERROR: Python: AttributeError: 'GrouperView' object has no attribute 'join' Python stacktrace:…

---

## [Matplotlib rcParams in module \_\_init\_\_() function segfault on M1](https://discourse.julialang.org/t/matplotlib-rcparams-in-module-init-function-segfault-on-m1/103314)

<div class="topic-metadata">

**Author:** [@hsgg](https://discourse.julialang.org/u/hsgg)\
**Replies:** 5\
**Last updated:** [September 20, 2023, 2:04pm UTC](https://discourse.julialang.org/t/matplotlib-rcparams-in-module-init-function-segfault-on-m1/103314 "2023-09-20T14:04:38Z")

</div>

Hi, I am converting a package from PyCall.jl to PythonCall.jl. (I am planning on calling Julia from Python in the future, and I want to test whether to use PythonCall/JuliaCall or PyCall/pyjulia. PythonCall/JuliaCall app…

---

## [How to plot a spectrum with dB as y-axis with PythonPlot](https://discourse.julialang.org/t/how-to-plot-a-spectrum-with-db-as-y-axis-with-pythonplot/100172)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [June 11, 2023, 8:01am UTC](https://discourse.julialang.org/t/how-to-plot-a-spectrum-with-db-as-y-axis-with-pythonplot/100172 "2023-06-11T08:01:15Z")

</div>

I am using PythonPlot and want to have a logarithmic y axis formatted in dezibel (dB). In Python I could use the following code: from UliEngineering.Math.Decibel import \* import matplotlib.ticker as mtick def decibel\_fo…

---

## [Installing PythonPlot fails](https://discourse.julialang.org/t/installing-pythonplot-fails/99100)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [May 19, 2023, 8:32am UTC](https://discourse.julialang.org/t/installing-pythonplot-fails/99100 "2023-05-19T08:32:35Z")

</div>

Precompiling PythonPlot on Windows with Julia 1.9 fails: (WindTurbines) pkg\> precompile Precompiling project... ✗ PythonPlot 0 dependencies successfully precompiled in 4 seconds. 201 already precompiled. ERROR: The…

---

## [Choosing a plotting library](https://discourse.julialang.org/t/choosing-a-plotting-library/97556)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 30\
**Last updated:** [April 21, 2023, 4:31pm UTC](https://discourse.julialang.org/t/choosing-a-plotting-library/97556 "2023-04-21T16:31:35Z")

</div>

Since 9 months I am trying to find a good Julia plotting library, but I was not successful. So I am going back to PythonPlot.jl, the latest wrapper for the Python based matplotlib library. What does it offer that the…

---

## [How to install pyqt for PythonPlot](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [April 18, 2023, 6:30am UTC](https://discourse.julialang.org/t/how-to-install-pyqt-for-pythonplot/97542 "2023-04-18T06:30:27Z")

</div>

I would like to use PythonPlot.jl with the QT backend. But how can I install it? I tried: using CondaPkg # press \] (Climate) pkg\> conda add pyqt5 which doesn’t work, it cannot find the package: error libmamba Could…

---

## [PythonPlot taking a lot of time to precompile](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166)

<div class="topic-metadata">

**Author:** [@madeline](https://discourse.julialang.org/u/madeline)\
**Replies:** 5\
**Last updated:** [March 23, 2023, 11:52pm UTC](https://discourse.julialang.org/t/pythonplot-taking-a-lot-of-time-to-precompile/94166 "2023-03-23T23:52:15Z")

</div>

I’m trying to animate a simulation. I’m most familiar with matplotlib in python, so I’m trying to use the PythonPlot backend for Plots.jl, however the following code is taking a lot of time (\>10 mins) to run. using Plot…
