cellBrowser icon indicating copy to clipboard operation
cellBrowser copied to clipboard

Resize the side panels.

Open Gibbsdavidl opened this issue 5 years ago • 13 comments

Would be lovely to resize the two side panels, similar to how the heatmap can be resized.

Gibbsdavidl avatar Jan 28 '20 00:01 Gibbsdavidl

Sorry for the delay: I agree that would be nice, but I am not sure I have the time for it. Wouldn't a mouse over be good enough? The mouse over could show the longer names. Don't I already have mouse overs in place for most strings that can go over the panel?

BTW: do you have a website where I could look at an example where the current dimensions are a problem?

On Tue, Jan 28, 2020 at 1:56 AM David L Gibbs [email protected] wrote:

Would be lovely to resize the two side panels, similar to how the heatmap can be resized.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

maximilianh avatar Feb 05 '20 14:02 maximilianh

Hi there, Yeah, not a big deal... it's a wish list item. Sorry our data is private right now.. but here's a screen shot. You can see some of the cell type labels are so long they wrap around.. maybe OCD of me, but I really want to stretch out the panel so they don't wrap.

Maybe I can figure it out! ;-)

image

Gibbsdavidl avatar Feb 06 '20 18:02 Gibbsdavidl

If you could suggest a good javascript library for doing stretching, that would be a big help. I spent a few hours one day, just to go in circles. Ideally something small with minimal dependencies. I ended up writing it myself for the heatmap but it wasn't very general.

Possibly you could just copy what I did for the heatmap ...? My implementation is not great at all though, you may want to restructure it a little into two functions...

maximilianh avatar Feb 07 '20 16:02 maximilianh

I'm getting advice from the web dev in our lab.

Gibbsdavidl avatar Feb 11 '20 21:02 Gibbsdavidl

Ah, good. What is the advice?

On Tue, Feb 11, 2020 at 10:31 PM David L Gibbs [email protected] wrote:

I'm getting advice from the web dev in our lab.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/157?email_source=notifications&email_token=AACL4TOKOLW6FNUBTFFMUZLRCMKJRA5CNFSM4KMKUPMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELOEXII#issuecomment-584862625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACL4TJGDPAWYJKEV4PX633RCMKJRANCNFSM4KMKUPMA .

maximilianh avatar Feb 12 '20 09:02 maximilianh

Sorry, I don't have any real solutions yet. But a quick solution would be to have a configuration parameter (in the conf file) that sets the width of the side panels.. I think they're hard coded right now.

Gibbsdavidl avatar Mar 02 '20 18:03 Gibbsdavidl

Good idea. In the develop branch, you can now set in cellbrowser.conf: metaBarWidth = 400

I also increased the left sidebar to 270 pixels from 200, inspired by a discussion with @mspeir. 250 pixels is the size of Gmail's left sidebar.

On Mon, Mar 2, 2020 at 7:38 PM David L Gibbs [email protected] wrote:

Sorry, I don't have any real solutions yet. But a quick solution would be to have a configuration parameter (in the conf file) that sets the width of the side panels.. I think they're hard coded right now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/157?email_source=notifications&email_token=AACL4TNDZWGL3KGZFILFRSTRFP4JFA5CNFSM4KMKUPMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENQOGMY#issuecomment-593552179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACL4TNUU533JBFM75MATNDRFP4JFANCNFSM4KMKUPMA .

maximilianh avatar Mar 06 '20 17:03 maximilianh

Can you use the git develop branch? Otherwise, I am happy to do a pre-release in pip.

On Fri, Mar 6, 2020 at 6:21 PM Maximilian Haeussler [email protected] wrote:

Good idea. In the develop branch, you can now set in cellbrowser.conf: metaBarWidth = 400

I also increased the left sidebar to 270 pixels from 200, inspired by a discussion with @mspeir. 250 pixels is the size of Gmail's left sidebar.

On Mon, Mar 2, 2020 at 7:38 PM David L Gibbs [email protected] wrote:

Sorry, I don't have any real solutions yet. But a quick solution would be to have a configuration parameter (in the conf file) that sets the width of the side panels.. I think they're hard coded right now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/157?email_source=notifications&email_token=AACL4TNDZWGL3KGZFILFRSTRFP4JFA5CNFSM4KMKUPMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENQOGMY#issuecomment-593552179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACL4TNUU533JBFM75MATNDRFP4JFANCNFSM4KMKUPMA .

maximilianh avatar Mar 06 '20 17:03 maximilianh

Thanks! I'll give it a try.

Gibbsdavidl avatar Mar 06 '20 22:03 Gibbsdavidl

Seems to work well... but only the left-side-panel is changing. Maybe would be nice to have the right side move too. Could make larger violin plots, which would be nice. Thanks though! This is good.

Gibbsdavidl avatar Mar 09 '20 15:03 Gibbsdavidl

Hi @maximilianh, Is there a way to change the right side LegendBarWidth dynamically by using the mouse courser? or have you updated it in the new version of the cellbrowser. It will be really helpful if you add this feature to it. Thank you for your time

devashishmohanta avatar Apr 29 '22 12:04 devashishmohanta

Hi Debashish, right now that's not possible. Can yo tell me why you want to change the size of the right panel? Is there are dataset where the size of it is a problem?

On Fri, Apr 29, 2022 at 5:02 AM DEBASHISH MOHANTA @.***> wrote:

Hi @maximilianh https://github.com/maximilianh, Is there a way to change the right side LegendBar dynamically by using the mouse courser? or have you updated it in the new version of the cellbrowser. It will be really helpful if you add this feature to it. Thank you for your time

— Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/157#issuecomment-1113233062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACL4TK2QBNGDMZ62FUYKSDVHPFTPANCNFSM4KMKUPMA . You are receiving this because you were mentioned.Message ID: @.***>

maximilianh avatar Apr 29 '22 21:04 maximilianh

Hi @maximilianh, Yes, you get it right sometimes the label annotation is larger than the LegendBar width size which makes it difficult to read as the text gets wrapped around the color boxes as mentioned by @Gibbsdavidl above. If it can be fixed somehow it will be really helpful. Thanks

devashishmohanta avatar May 01 '22 21:05 devashishmohanta