Heatmap save to file output blank file
hejing3283 opened this issue · 13 comments
hejing3283 commented
DTCRU.HeatMap_Sequences(filename='Heatmap_Sequences.pdf')
The resulted file is blank.
sidhomj commented
The output must be an image. Not a pdf.
…Sent from my iPhone
On Apr 26, 2019, at 11:50 AM, Jing He <notifications@github.com<mailto:notifications@github.com>> wrote:
DTCRU.HeatMap_Sequences(filename='Heatmap_Sequences.pdf')
The resulted file is blank.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#6>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGVMZTBQKNTWDD47DFC4GGTPSMQCTANCNFSM4HIWX2KQ>.
hejing3283 commented
so it's a png, the tiff is not supported?
sidhomj commented
It may depend on the OS you are using. I think tiff should work on Linux systems. I generally use either eps or png.
…Sent from my iPhone
On Apr 26, 2019, at 12:05 PM, Jing He <notifications@github.com<mailto:notifications@github.com>> wrote:
so it's a png, the tiff is not supported?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGVMZTFMD4Q5VI6A7TEI6BDPSMR4RANCNFSM4HIWX2KQ>.
hejing3283 commented
I use macOS and linux. None of them works. Cannot save to eps or png neither.
sidhomj commented
Will look at this later tonight. Sorry for the delay.
…Sent from my iPhone
On Apr 26, 2019, at 1:20 PM, Jing He <notifications@github.com<mailto:notifications@github.com>> wrote:
I use macOS and linux. None of them works. Cannot save to eps or png neither.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGVMZTGNHXSQZ4446NQDE43PSM2U3ANCNFSM4HIWX2KQ>.
hejing3283 commented
Thanks!
sidhomj commented
hmm. i'm not having a problem saving png or eps images.. are you getting an actual error?
hejing3283 commented
No error at all. Just blank page.
… On Apr 26, 2019, at 20:54, John-William Sidhom ***@***.***> wrote:
hmm. i'm not having a problem saving png or eps images.. are you getting an actual error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
sidhomj commented
with with png? I can't replicate the problem on my end so it's hard to know how to fix it.. can you try running DeepTCR within an IDE like pycharm? as oppose to just from cmd.
hejing3283 commented
I tried .tif, png, off, eps, none of them works. But from Jupyter notebook, it shows up.
Best,
Jing
… On Apr 26, 2019, at 23:02, John-William Sidhom ***@***.***> wrote:
with with png? I can't replicate the problem on my end so it's hard to know how to fix it.. can you try running DeepTCR within an IDE like pycharm? as oppose to just from cmd.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
sidhomj commented
So it’s only a problem when running DeepTCR from command line?
Sent from my iPhone
On Apr 27, 2019, at 11:15 AM, Jing He <notifications@github.com<mailto:notifications@github.com>> wrote:
I tried .tif, png, off, eps, none of them works. But from Jupyter notebook, it shows up.
Best,
Jing
On Apr 26, 2019, at 23:02, John-William Sidhom ***@***.******@***.***>> wrote:
with with png? I can't replicate the problem on my end so it's hard to know how to fix it.. can you try running DeepTCR within an IDE like pycharm? as oppose to just from cmd.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGVMZTAWEDHSVR3GFGGSCLDPSRUUXANCNFSM4HIWX2KQ>.
hejing3283 commented
The heatmap shows up in notebook, but cannot be saved to a file no matter how I run it.
Best,
Jing
… On Apr 27, 2019, at 11:17, John-William Sidhom ***@***.***> wrote:
So it’s only a problem when running DeepTCR from command line?
Sent from my iPhone
On Apr 27, 2019, at 11:15 AM, Jing He ***@***.******@***.***>> wrote:
I tried .tif, png, off, eps, none of them works. But from Jupyter notebook, it shows up.
Best,
Jing
> On Apr 26, 2019, at 23:02, John-William Sidhom ***@***.******@***.***>> wrote:
>
> with with png? I can't replicate the problem on my end so it's hard to know how to fix it.. can you try running DeepTCR within an IDE like pycharm? as oppose to just from cmd.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#6 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGVMZTAWEDHSVR3GFGGSCLDPSRUUXANCNFSM4HIWX2KQ>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
hejing3283 commented
I installed pillow and set the backend as 'pdf' by the following scripts, it works now.
import matplotlib
matplotlib.use("pdf")