You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plotting methods currently do not produce a result but instead use the show method of matplotlib to display the result in a notebook environment (or PyCharm) as a side effect. More generally, we can currently only work with tabular data in safe-ds.
Desired solution
Create a new class Image in safeds.data.image.containers
The constructor should accept a buffer of type io.BytesIO
Internally we can use pillow to handle the image
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered:
Closes#158.
### Summary of Changes
* New class `safeds.data.image.containers.Image` to store images
* An `Image` can be created from and saved to JPEG and PNG files
* Methods that create a plot for `Table` and `Column` now return an
`Image` instead of plotting them directly in an interactive environment
* An `Image` can be displayed in an interactive environment
---------
Co-authored-by: megalinter-bot <[email protected]>
Is your feature request related to a problem?
Plotting methods currently do not produce a result but instead use the
show
method ofmatplotlib
to display the result in a notebook environment (or PyCharm) as a side effect. More generally, we can currently only work with tabular data insafe-ds
.Desired solution
Image
insafeds.data.image.containers
buffer
of typeio.BytesIO
pillow
to handle the imagePossible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: