Re: [igraph] Saving .tif graph

2019-06-13 Thread Tamas Nepusz
As the error message says, saving into TIF is not supported. Save the plot
into PNG and then convert the output into TIF. (PNG files are significantly
smaller than TIFs anyway).

T.


On Thu, 13 Jun 2019 at 13:06, Roaa Soloh  wrote:

> Kindly I'm getting this error when trying to save the output graph into
> .tif format
> 
> Traceback (most recent call last):
>   File "/home/roaa/PycharmProjects/PhD/Coding.py", line 26, in 
> plot(g, "/home/roaa/Desktop/PhD/Output/dinosaur.tif")
>   File
> "/home/roaa/anaconda3/envs/PhD/lib/python3.7/site-packages/igraph/drawing/__init__.py",
> line 449, in plot
> result = Plot(target, bbox, background=kwds.get("background", "white"))
>   File
> "/home/roaa/anaconda3/envs/PhD/lib/python3.7/site-packages/igraph/drawing/__init__.py",
> line 160, in __init__
> raise ValueError("image format not handled by Cairo: %s" % ext)
> ValueError: image format not handled by Cairo: .tif```
> -
>
> Best Regards,
> ___
> igraph-help mailing list
> igraph-help@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help


[igraph] Saving .tif graph

2019-06-13 Thread Roaa Soloh
Kindly I'm getting this error when trying to save the output graph into
.tif format

Traceback (most recent call last):
  File "/home/roaa/PycharmProjects/PhD/Coding.py", line 26, in 
plot(g, "/home/roaa/Desktop/PhD/Output/dinosaur.tif")
  File
"/home/roaa/anaconda3/envs/PhD/lib/python3.7/site-packages/igraph/drawing/__init__.py",
line 449, in plot
result = Plot(target, bbox, background=kwds.get("background", "white"))
  File
"/home/roaa/anaconda3/envs/PhD/lib/python3.7/site-packages/igraph/drawing/__init__.py",
line 160, in __init__
raise ValueError("image format not handled by Cairo: %s" % ext)
ValueError: image format not handled by Cairo: .tif```
-

Best Regards,
___
igraph-help mailing list
igraph-help@nongnu.org
https://lists.nongnu.org/mailman/listinfo/igraph-help