ICB-DCM / pyABC

distributed, likelihood-free inference
https://pyabc.rtfd.io
BSD 3-Clause "New" or "Revised" License
206 stars 44 forks source link

pyabc.visualization.plot_kde_2d on log scale #545

Closed HounerX closed 2 years ago

HounerX commented 2 years ago

Hello,

I am working with very small values and I need a log scale to have an easy readable plot. I was able to do it on 1D plots by just typing

ax.set_xscale('log')

however, when I do that in 2d on both x and y it doesnt work

Any suggestions please it is really important to have it on log scale

download (67)

yannikschaelte commented 2 years ago

Hi @HounerX , I apologize, this issue has gone unnoticed. Is this still a problem? I assume you will want to have a linear color scale on log-scaled parameters. For this, you would need to modify the inputs. This can be done by applying np.log to the x, y arguments of https://github.com/ICB-DCM/pyABC/blob/main/pyabc/visualization/kde.py#L419, for example.

yannikschaelte commented 2 years ago

Closing due to inactivity. Please feel free to reopen if the issue persists!