plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Figure label auto-positioning

Open apberesford opened this issue 1 year ago • 4 comments

This is a customer requested feature. In both R and MatPlotLib there are extensions which allow figure labels to auto-position for readability by preventing overlap. See gif below.

GIF Recording 2024-09-19 at 9 31 39 AM (1)

It is possible to acheive this effect in MatPlotLib and R

At least one customer has requested, and it's a feature which is not possible for a client to easily implement by themeselves. Current label positioning options are not dynamic in this way, and as a result we don't see a lot of client figures using labels, especially when there are more than a few points on the figure. Most clients default to hover, but that isn't viable for everyone, especially in settings where apps are being viewed on different devices. It's potentially also an accessibility improvement.

apberesford avatar Sep 23 '24 10:09 apberesford

Launching a VM manually with the ISO files works fine, the same configs as yesterday are failing, so the image seems to be isolated to the base images that AL is creating.

PhilKeeble avatar Sep 05 '24 16:09 PhilKeeble

I guess it is not a bug in AL as we would have faced the issue somewhere else then.

What happens if you create a differencing disk based on one of the AL base disks using the Hyper-V management tools and use that in a new VM you create with the Hyper-V tools as well?

raandree avatar Sep 06 '24 15:09 raandree

Same issue. Created a differencing disk from the base image and then created the vm from the differencing disk and it gives me the same error. image

If i use the ISO file that is being used for the base image then the machine boots fine, so the problem appears to be somewhere between it going from ISO to AL making the base image.

PhilKeeble avatar Sep 06 '24 15:09 PhilKeeble

What generation is your new VM from? And what generation is the machine you created with AL? The hard disc layout for gen1 and gen2 is different.

raandree avatar Sep 06 '24 15:09 raandree

Both are gen 2

PhilKeeble avatar Sep 06 '24 15:09 PhilKeeble

Gen 1 gives this error image

PhilKeeble avatar Sep 06 '24 15:09 PhilKeeble

Is there a way to check the BASE image and see if AL (or hyper-v cmdlets) thinks it should be compatible or maybe provide a more verbose error on why the image is failing?

PhilKeeble avatar Sep 06 '24 15:09 PhilKeeble

Or is there a way to force AL to boot from the ISO and not perform the base image build, since I know it works from the ISO?

PhilKeeble avatar Sep 06 '24 15:09 PhilKeeble

Or is there a way to force AL to boot from the ISO and not perform the base image build, since I know it works from the ISO?

No, base images are required.

raandree avatar Sep 06 '24 16:09 raandree

Is there a way to check the BASE image and see if AL (or hyper-v cmdlets) thinks it should be compatible or maybe provide a more verbose error on why the image is failing?

This is happening within the OS and we have no control of the error message.

Just to double check: If you remove all base images and start a simple deployment of a Gen 2 machine, you get the error shown in the screenshot, right?

raandree avatar Sep 06 '24 16:09 raandree

Yes I have tried new base images, new isos, other operating system versions (you are seeing win 10 evaluation above but have tried all server versions for eval). If I use AL then I get this error in all cases now. A few days ago it was only every now and again, and then I would remove the base and lab and then try again and would be fine.

PhilKeeble avatar Sep 06 '24 16:09 PhilKeeble

Then we need to take a closer look at the base disc. I'll make a Gen 1 and a Gen 2 tomorrow to see the differences. It's been too long to know off the top of my head.

raandree avatar Sep 06 '24 16:09 raandree

Can you force AL to make a gen1 rather than gen 2 so I can try it?

PhilKeeble avatar Sep 06 '24 16:09 PhilKeeble

well, rephrased, can I force it too

PhilKeeble avatar Sep 06 '24 16:09 PhilKeeble

I am going on holiday for the next 2 weeks so I wont be able to respond until the 23rd btw but pls do keep open, I would love to get this sorted and be able to use AL. Thanks!

PhilKeeble avatar Sep 06 '24 21:09 PhilKeeble

I am back now and this is still occurring, any help in debugging would be appreciated.

PhilKeeble avatar Sep 30 '24 16:09 PhilKeeble

Sorry, @PhilKeeble, I was on vacation for quite a while. Did you solve the issue in the meantime?

raandree avatar Oct 18 '24 09:10 raandree

No worries, I did not. Strangely if I deploy a windows vm in hyperv and allow nested virtualisation I can use that vm to use automatedlab. I have tried getting rid of AL completely, downgrading it, reinstalling it, but if I do it on my base hyper-v instance it just won't launch from the disks it creates which is very strange, but does appear to be isolated to some factor on my machine (although I have no idea what).

PhilKeeble avatar Oct 23 '24 14:10 PhilKeeble

@PhilKeeble, I have lost track on this. Does AL work for you now?

raandree avatar Dec 09 '24 10:12 raandree

Honestly, having the exact same issue. Another person in my org is also having problems, but I can create the VMs on another machine. Thinking this may be related to a security setting, but haven't tracked it down.

jpbruckler avatar Dec 16 '24 15:12 jpbruckler

Comparing VMs that are working to the VM that is not, the boot settings are different. Working machines have their firmware set to Boot from file

image

Non-working VMs have the firmware set to boot from Hard Drive, pointing to the differenced disk. I don't believe this is an issue with AL at all.

EDIT:

Confirmed the SHA256 hash of the BASE_Windows11EnterpriseEvaluation_10.0.26100.1742_50.vhdx from the working machine is different than the hash of the base image on the non-working machine. Additionally, transferring the base VHDX from the working machine to the non-working machine and re-deploying the lab results in the VMs booting appropriately.

jpbruckler avatar Dec 16 '24 16:12 jpbruckler

I have seen the same as mentioned above, with bases being built on a nested hyperv instance working. I have now just got a nested hyperv for building the bases then copying them out to the host and running the labs from there. Interestingly I have now seen this issue occur for all members of my team that are trying to use AutomatedLab. These are on corporate machines so I am wondering if it is due to some other setting on the system, as it does reliably work in the nested hyperv with no controls on it.

PhilKeeble avatar Jan 15 '25 09:01 PhilKeeble

This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.

stale[bot] avatar Apr 26 '25 03:04 stale[bot]

I'm having the same experience. @PhilKeeble I think this is a sound suggestion. I'm on a corporate laptop and would not be surprised if some GPO setting is interfering. I have no idea what it could be though. I'll keep digging in that direction though and report back if find anything. Would love to be able to start using automate lab but have not had any luck so far :(

tysonro avatar May 23 '25 01:05 tysonro

This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.

stale[bot] avatar Jun 27 '25 02:06 stale[bot]