Skip to content

plt.show( ) not working (can't get figures to display in external window) when using jupyter QTconsole #12397

@beatbox13

Description

@beatbox13

Bug report

Bug summary

I am trying to have my figures open up in external windows using the plt.show() function. However, It gives me no output other than something such as:
<Figure size 640x480 with 1 Axes>

I am running linux ubuntu latest release and matplotlib 2.2.2,
qtconsole 4.3.1,
anaconda client 1.6.14
anaconda navigator 1.8.7
anaconda project 0.8.2,
jupyter 1.0.0
jupyter-client 5.2.3
jupyter-console 5.2.0
jupyter-core 4.4.0
jupyterlab 0.32.1
jupyterlab-launcher 0.10.5
python 3.6.5

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
fig= plt.figure()
ax= fig.add_subplot(111)
ax.plot([1, 2, 3, 4], [10, 20, 25, 30], color= "lightblue", linewidth= 3)
ax.scatter([0.3, 3.8, 1.2, 2.5], [11, 25, 9, 26], color= "darkgreen", marker= "^")
ax.set_xlim(0.5, 4.5)
plt.show()

Actual outcome

<Figure size 640x480 with 1 Axes>

Expected outcome

figure open in external window

Matplotlib version

  • Operating system:
  • Matplotlib version:
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:

Installed through anaconda

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions