djwooten / synergy

Python library for calculting synergy of drug combinations using several drug synergy frameworks
GNU General Public License v3.0
27 stars 5 forks source link

Effect Axis in plot_surface_plotly #6

Closed DJuarez10 closed 3 years ago

DJuarez10 commented 3 years ago

Thank you for this synergy package! I want to visually compare the effects of drugs across a number of different cell lines. Could you include a way to set the effect axis (and the color gradient) from 0-1? It currently autoscales to the input data.

djwooten commented 3 years ago

Hi, you can set the effect axis using the zlim keyword argument, and the color gradient using vmin and vmax. Does plot_surface_plotly(d1, d2, E, zlim=(0,1), vmin=0, vmax=1) accomplish what you want?

DJuarez10 commented 3 years ago

That is exactly what I'm looking for. I tried a few variations of this that didn't end up working for me but I realize the error was on my end. Thank you again!

djwooten commented 3 years ago

Great! Thanks for reaching out, and if you have any other issues, please don't hesitate!