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
p4c.add_annotation_image(url="http://www.ucsd.edu/_resources/img/logo_UCSD.png", network)
or (after downloading the image) p4c.add_annotation_image(url="images/logo_UCSD.png", network)
or p4c.add_annotation_image(url="file:images/logo_UCSD.png", network)
or p4c.add_annotation_image(url="/absolute/path/images/logo_UCSD.png", network)
creates an empty rectangle in the network with the output:
I tried this in the Cytoscape GUI ... and chose the background layer, which I assume you mean to do (??).
With a little work, I got Cytoscape to show a logo file (UCSD-Jacobs School) as a background annotation.
The URL I used was file:///C:/Users/bdemc/Desktop/UCSD-Jacobs.png ... note the "file:///" preceding the path.
Confession: I didn't use py4cytoscape to do this ... I directly edited the session file and reloaded the session. (If you'd like to know the exact mechanics, I can burden you.) Still, I'd expect the same result by using py4cytoscape.
Hi,
I am trying to load a background annotation (image) to my network. Using
p4c.add_annotation_image(url="https://www.ucsd.edu/_resources/img/logo_UCSD.png", network)
works: the logo is loaded, I can also view it in the ImageManager, the output is as expected
using
p4c.add_annotation_image(url="http://www.ucsd.edu/_resources/img/logo_UCSD.png", network)
or (after downloading the image)
p4c.add_annotation_image(url="images/logo_UCSD.png", network)
or
p4c.add_annotation_image(url="file:images/logo_UCSD.png", network)
or
p4c.add_annotation_image(url="/absolute/path/images/logo_UCSD.png", network)
creates an empty rectangle in the network with the output:
is missing the URL.
Using Cytoscape 3.10 or 3.10.2 with py4cytoscape 1.9.0 on Ubuntu.
Not sure if this is a local issue or not.
The text was updated successfully, but these errors were encountered: