-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Title not centered #405
Comments
Now the title has two attributes:
|
@empet, thanks a lot. |
Hi @VivaldoMendes this was intentional and one of hopefully the last breaking changes for the forseeable future. Thanks @empet for a quick solution! I'm going to close here as I don't think there are any bugs. If you have further questions, please don't hesitate to reach out! |
@sglyon Thanks for the information. I found out a minor problem that I still do not know how to overcome. Now, the titles come out centered at the top of an individual plot. But when I combine two previous plots and use them as subplots of another plot, their titles disappear and I get "new text" instead of the correct title. MWE Now, I use the usual syntax for producing subplots with those two plots:
The subplots come out OK, with the exception that the titles are gone. However, if I leave the titles aligned on the top left-hand corner of each individual plot, the titles in the subplots come out visible and correctly placed. How do I set the titles in the subplots, by using the subplots syntax? I hope there is a simple turnaround for this problem because this way of producing subplots is extremely useful in PlotlyJS. Thanks. |
oh no! that isn't supposed to happen. Can you post code that demonstrates your issue? That will make it easier to debug and fix |
It is very easy to show what is not working OK. The x,y labels are OK, the only thing that is not working properly is titles. Let's see the minimum working example possible:
This MWE was generated using the latest versions of PlotlyJS and Plotly Base, in VSCode. Thanks. |
Hi @sglyon, I noticed that the latest versions of PlotlyJS v0.18.3 and PlotlyBase v0.8.4 introduced one particular change, which I wonder whether was intentional or just a missed small detail in the migration process. Suppose I have two time series. In the previous versions, both values are highlighted when we hover over the points of the time series. Now, only the points of one of the time series (one at a time) is highlighted in the new versions. I do not know if this must be so or not. But from a visual point of view, the previous versions looked better on this point. Below I provide the code that delivers the two different outputs. I am doing this with Pluto v0.15.1. Thanks. Outupt in the new version of PlotlyJS: Output in the previous version: Same code on both versions:
|
Just add to layout:
This setting ensures that hovering at some x-ccordinate value, all corresponding y-values in your plot are displayed. |
Thanks @empet that's spot on! |
@VivaldoMendes I found the "new text" issue and it will be resolved in the soon to be released 0.8.7 of PlotlyBase.jl Thanks for posting a great MWE and sticking with it. |
It is my pleasure. I am in the middle of migrating a 12 weeks course into Pluto and PlotlyJS. So I passed through this transition process to the new versions of PlotlyJS and PlotlyBase, and naturally found these minor issues that are the cost we have to pay for having better and faster software. Congrats on the fantastic piece of software that you have developed. It is simply amazing what we can do with PlotylyJS and Pluto. The hover thing is solved—many thanks. |
Hi, I have upgraded PlotlyJS to v0.18.3 and PlotlyBase to v0.8.4. I have a minor issue with the plot titles. When I have an individual plot, the title is not centered (it is placed on the left-hand side of the plot). But when I am dealing with subplots, the titles come out in the right places. Please see the figures below. Help would be very much appreciated. Thanks.
MWE:
The text was updated successfully, but these errors were encountered: