Skip to content
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

Bug: Titles not being shown #2301

Closed
LarryMartell opened this issue Jan 27, 2018 · 4 comments
Closed

Bug: Titles not being shown #2301

LarryMartell opened this issue Jan 27, 2018 · 4 comments

Comments

@LarryMartell
Copy link

The new version fixed the heat and contour map bugs, but a new bug was introduced. The titles on plots are not being show. Here are 2 codepens that show this:

Version 1.31.2 titles work: https://codepen.io/LarryMartell/pen/BYBaXB
Version 1.33.1 titles do not work: https://codepen.io/LarryMartell/pen/WMebeQ?editors=1000

@LarryMartell LarryMartell changed the title Titles not being shown Bug: Titles not being shown Jan 27, 2018
@alexcjohnson
Copy link
Collaborator

Thanks for the codepen examples! Looks like you're referring to the titles for xaxis3 and xaxis5 being ignored? I'm afraid this is an intentional result of #2227 - you don't reference these axes with any traces, and as of that change we simply stop creating any subplots for axes that don't have any data (or other components like annotations or shapes) referencing them; with no subplots, we don't create any titles, ticks, or tick labels either.

If you're using these axes just to get labels positioned where you want them, can you make them with annotations instead? Those should actually be quite a bit easier to use (and more flexible) for this purpose anyway. Something like:

var layout = {
    ...
    annotations: [{
        text: 'By Radius',
        xref: 'paper',
        yref: 'paper',
        xanchor: 'center',
        yanchor: 'bottom',
        x: 0.875,
        y: 1.01,
        showarrow: false,
        font: {size: 14}
    }]
};

@LarryMartell
Copy link
Author

Thanks I was able achieve what I need using the annotations.

@alexcjohnson
Copy link
Collaborator

OK great. Sorry for the trouble, I didn't realize anyone was using axes this way...

@LarryMartell
Copy link
Author

Not sure why I did it this way - probably did not know about annotations. Thanks for the pointer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants