janezd / baycomp

MIT License
71 stars 15 forks source link

How do i generate larger images? #4

Closed henrique-voni closed 5 years ago

henrique-voni commented 5 years ago

Hello,

I'm publishing a paper and i need to enlarge the results generated from my tests. I didn't find anything related in the docs. Thanks.

janezd commented 5 years ago

What do you mean by "enlarge the results"?

henrique-voni commented 5 years ago

Sorry, i meant larger pictures. The two_on_single and two_on_multiple functions return 300x300px images.

janezd commented 5 years ago

Ooops, I read just the text, not the title. My bad.

These are matplotlib figures, so you can find detailed instructions for saving them in different formats and resolutions in the matplotlib documentation. I suppose documentation about savefig should help.

henrique-voni commented 5 years ago

The problem is that two_on_multiple() and two_on_single() have a plot parameter that when is set to True, it returns the preset figure in default size. Should i customize these functions inside baycomp code perhaps?

janezd commented 5 years ago

Function does not set the size of the figure. If you use, for instance, fig.savefig("name.png", dpi=576), you will get a pretty large figure.

henrique-voni commented 5 years ago

Thank you very much, i didn't realize that the test returned a tuple.