Page 1 of 1

Title of Multiline chart shifted left

PostPosted: Sat Nov 20, 2021 1:15 pm
by aldonc
Hi Dave,
I've noticed that the title for the multiline charts is shifted far left. It looks like maybe the centerline of the title is at the left margin of the plot but I haven't proven that. This happened a while back and I just got around to looking into it so don't know if there was a change in one of the updates? I do't see anything obvious.

thanks,
Aldon

Re: Title of Multiline chart shifted left

PostPosted: Sat Nov 20, 2021 2:46 pm
by DaveL17
Yes it does, and that's not something I recall doing intentionally. I'm zeroing in on a permanent solution, but if you're comfortable editing the plugin code...within the file "chart_multiline.py", change this line:

Code: Select all
    chart_tools.format_title(p_dict=p_dict, k_dict=k_dict, loc=(0.05, 0.98), align='center')
to this:

Code: Select all
    chart_tools.format_title(p_dict=p_dict, k_dict=k_dict, loc=(0.5, 0.98), align='center')
(the change is in the loc parameter). This might be the permanent solution, but I want to do a bit more digging.

chart_multiline.png
chart_multiline.png (17.02 KiB) Viewed 1716 times

Re: Title of Multiline chart shifted left

PostPosted: Sat Nov 20, 2021 4:36 pm
by aldonc
That worked!

thanks,
Aldon

Re: Title of Multiline chart shifted left

PostPosted: Sat Nov 20, 2021 6:01 pm
by DaveL17
Good deal. Thanks for letting me know.

Re: Title of Multiline chart shifted left

PostPosted: Sat Nov 20, 2021 6:28 pm
by DaveL17
I've posted an update to the plugin that addresses this bug. Thanks for bringing it to my attention.

https://forums.indigodomo.com/viewtopic.php?f=219&t=17349&start=30#p206578