Trying to replicate a visualisation in the documentation #2399
Unanswered
Quadrophonia
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
Could you share the full stack trace? Important information seems to be missing. I'm not sure, but it might be bug with |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
Apologies if this is not the right place for this: I don't think it's a bug - rather, my programming ability!
I have two related issues. First, I'm trying to replicate the plot on this page of the documentation:
I'm specifically interested in being able to control the label font size: I like that the plot is "zoomed out", and the labels are clear. However, when I run both versions of the accompanying code, the resulting plot doesn't resemble the one on the page:
Second, I'm guessing that these labels can be achieved by controlling the font size in
datamapplot, as discussed here.However, when I try and adapt the code to my own case (for example, by passing arguments in
datamap_kwds), I get a persistent error "cannot access local variable "font_scale_factor" where it is not associated with a value". I've tried declaring a value for "font_scale_factor" in mydatamap_kwdsdict, but to no avail. Here is a minimum sample code:...and here is the full stack trace showing the error:
Beta Was this translation helpful? Give feedback.
All reactions