Yesterday, 10:10 PM
Thread Rating:
|
opening the image leads to funny action - cannot see any thing but a black box
|
|
hm strange, some programs show transparency as black but you should display a checkered background in gimp to show transparency. What mode is your picture? Greyscale, indexed, rgb, or other?
To check this, once you have your picture opened in gimp, check 'image' in the top menu - mode and if it is any other put it to rgb. Oh, and make sure you have an alpha channel too. right click on your picture in the layers dialog and add alpha channel. Found this here https://www.gimp-forum.net/Thread-gimp-r...d-to-black ![]()
Can you open the graphics file in another program, such as XnView? If you can, load and save the file from that program, it could be possible that the file is a little corrupt.
good day you both - very glad to hear from you.
Well i will try to reproduce the steps so that we can have the file again. see here : btw: if you want to run the code - you can do it here: https://colab.research.google.com/drive/...sp=sharing then you can see the outcome - and all that stuff love to hear from you
1 hour ago
(3 hours ago)saint_m Wrote: good day you both - very glad to hear from you.access denied
hello dear denzjos
many many thanks for the quick reply - very glad to hear from you i updated the google-colab-settings - now you have access and can run the plotly-code https://colab.research.google.com/drive/...sp=sharing and it should output it with a transparent background greetings btw. the code is taken form here: https://plotly.com/python/line-and-scatter/ btw: does this help Code: import plotly.express as pxsiome changes were made: Code: # Plotly-Bibliothek installieren (falls nicht vorhanden)and some additonal Changes were made: paper_bgcolor='rgba(0,0,0,0)': Makes the entire paper background (the area surrounding the plot) transparent. rgba(0,0,0,0) stands for red, green, and blue with an alpha value (transparency) of 0. plot_bgcolor='rgba(0,0,0,0)': Makes the background of the coordinate system itself transparent. template='plotly_white': This sets a light base style, though it is overridden by the transparency settings. It ensures that axis labels and legends remain clearly legible. Adjusting grid lines: To ensure data points remain visible against a transparent background, the grid lines are kept a subtle gray ('lightgrey'). You can set showgrid=False if you wish to remove them entirely. you should be able to run it here: https://colab.research.google.com/drive/...sp=sharing some findings: Even if the screenshot turns black when clicked. Didn't know exporting a png could be so complicated and messy. Guess that for Matplotlib, export directly with alpha from the figure, not by screenshotting or copying the preview. what about the usage of this pattern: Code: import matplotlib.pyplot as pltlook forward to hear from you
|
|
« Next Oldest | Next Newest »
|



