Replies: 5 comments 1 reply
-
I apologize – I read your question three times and I'm still not certain what you're asking. The title of the question says you want to hide the facet title, but your examples seem to be mostly about setting facet spacing? In a sentence or two, what is it that you want to do, and what problem are you having in accomplishing it? |
Beta Was this translation helpful? Give feedback.
-
So your ultimate goal is to have zero spacing between facets, regardless of what happens to titles or labels? |
Beta Was this translation helpful? Give feedback.
-
@jakevdp any explanation why |
Beta Was this translation helpful? Give feedback.
-
@jakevdp I cleaned all the unnecessary comments and I believe the issue is clearer now. Try to ignore your own replies as I have sanitized everything here. Be great if you could look into it cause it does look like an unusual behavior. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue where: alt.Facet(..., headers=alt.Headers(labels=False)) does not work, even though those work fine: alt.Row(..., headers=alt.Headers(labels=False))
alt.Columns(..., headers=alt.Headers(labels=False)) My workaround has been to use alt.Facet(..., headers=alt.Headers(labelFontSize=0)) |
Beta Was this translation helpful? Give feedback.
-
I have been trying to make a facet chart look like a regular bar chart (making spacing b/w facets = 0). I think it may be because the size of labels do not let that happen. So I tried to hide the labels to bring the facets closer but turns out hiding labels when using facet as an encoding does not seem to work -
NOTE: Using a
step
size of 4 actually gives a larger space in the first chart than the rest.Preparation
I plot this data using 4 different ways -
(Those year values on top of facets are the labels. And strangely doing
header=alt.Header(labels=False, title=None)
does not remove them. However, other properties likelabelFontSize
seems to work.)Facet as an encoding channel fails -
NOTE: Experiment with different
step
sizes, you'd notice that if you increase step size, then the spacing b/w facets does become 0 when individual charts become larger than the label width. However, at lowstep
sizes that's not the case and that's what I am pointing at cause using low step size is imperative and thus the need to hide the labels.When specified via column channel it works -
NOTICE: How the spacing is much less compared to above (it looks to me that its because of the absence of labels)
Also works when specified via column inside facet -
Beta Was this translation helpful? Give feedback.
All reactions