geopandas legend_kwds seems to be ignored
up vote
0
down vote
favorite
I have a geodataframe which I'm plotting from, code looks like this
ax = df.plot(column='cap',
cmap='Oranges', figsize=(16, 9),
linewidth=0.5,
edgecolor='black',
facecolor='red',
legend=True,
legend_kwds='frameon': True, 'loc': 'center left',
'title': 'My legend Title', 'fontsize': 24
)
I am trying to increase the size of the legend markers and played around with the legend_kwds, however it's always fixed at the right side of the plot, it doesn't matter what I pass in the dict.
What am I missing?
Thanks!
python geopandas
add a comment |
up vote
0
down vote
favorite
I have a geodataframe which I'm plotting from, code looks like this
ax = df.plot(column='cap',
cmap='Oranges', figsize=(16, 9),
linewidth=0.5,
edgecolor='black',
facecolor='red',
legend=True,
legend_kwds='frameon': True, 'loc': 'center left',
'title': 'My legend Title', 'fontsize': 24
)
I am trying to increase the size of the legend markers and played around with the legend_kwds, however it's always fixed at the right side of the plot, it doesn't matter what I pass in the dict.
What am I missing?
Thanks!
python geopandas
Can you provide a reproducible example?
– joris
Nov 9 at 17:02
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a geodataframe which I'm plotting from, code looks like this
ax = df.plot(column='cap',
cmap='Oranges', figsize=(16, 9),
linewidth=0.5,
edgecolor='black',
facecolor='red',
legend=True,
legend_kwds='frameon': True, 'loc': 'center left',
'title': 'My legend Title', 'fontsize': 24
)
I am trying to increase the size of the legend markers and played around with the legend_kwds, however it's always fixed at the right side of the plot, it doesn't matter what I pass in the dict.
What am I missing?
Thanks!
python geopandas
I have a geodataframe which I'm plotting from, code looks like this
ax = df.plot(column='cap',
cmap='Oranges', figsize=(16, 9),
linewidth=0.5,
edgecolor='black',
facecolor='red',
legend=True,
legend_kwds='frameon': True, 'loc': 'center left',
'title': 'My legend Title', 'fontsize': 24
)
I am trying to increase the size of the legend markers and played around with the legend_kwds, however it's always fixed at the right side of the plot, it doesn't matter what I pass in the dict.
What am I missing?
Thanks!
python geopandas
python geopandas
asked Nov 9 at 12:42
Simmen
183
183
Can you provide a reproducible example?
– joris
Nov 9 at 17:02
add a comment |
Can you provide a reproducible example?
– joris
Nov 9 at 17:02
Can you provide a reproducible example?
– joris
Nov 9 at 17:02
Can you provide a reproducible example?
– joris
Nov 9 at 17:02
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225923%2fgeopandas-legend-kwds-seems-to-be-ignored%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Can you provide a reproducible example?
– joris
Nov 9 at 17:02