Giter VIP home page Giter VIP logo

rewalt's People

Contributors

ahadziha avatar logicsoup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rewalt's Issues

pyplot show() opens functioning window only outside of rewalt, otherwise creates a non-responsive window

Problem description

Using matplotlib.pyplot outside of rewalt with pyplot.show() opens a functioning window.
However, rewalt creates an unresponsive window without showing the plot, giving a prompt of " "" is not responding". It can only be killed by using xkill.
Saving the image without opening a window, and then opening the saved image works, however.

System details

Python version:
Python 3.10.4

Matplotlib backend:

matplotlib.get_backend()
'GTK4Agg'

Rewalt version:

import rewalt
rewalt.__version__
'0.1.0'

OS: Pop_OS!
Window manager: GNOME Display Manager

Working with the latest changes as per the current date.

Problem reproduction

The following works:

import matplotlib.pyplot as plt
fig, axes = plt.subplots()
plt.show()

But the following produces an unresponsive window:

import rewalt
test = rewalt.drawing.MatBackend()
test.output()

Trying this saves the image:

import rewalt
test = rewalt.drawing.MatBackend()
test.output(path="test.png",show=False)

Opening the image from the terminal works as well, opening a window showcasing the image.

Disabling the WM doesn't change anything.

Ideas

  1. It seems that showing the image specifically from Rewalt is one of the issues. The next step would be to let the process "wait" with drawing.
  2. Could be a WM issue, depending on which OS and WM the other contributors use. It would be helpful to compare.
  3. It would be helpful to find out which matplotlib backend the other contributors use as well.
  4. Could be an internal process in my computer that's causing some kind of race condition with the matplotlib backend, since we've previously thought the issue was solved after I restarted my computer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.