df.plot.scatter how can I change the size of the second yaxis?












0














here is my python code:



fig, ax1 = plt.subplots(figsize=(15,10))
ax1.tick_params(axis='both', labelsize=18)
test.plot.scatter(x='USFM Durchfluß korrigiert', y='Ausgangsdruck', c='Dichte', ax = ax1, colormap="viridis")
ax1.set_xlabel('Durchfluss [m^3/h]', fontsize=18)
ax1.set_ylabel('Ausgangsdruck [bar]', fontsize=18)


I want to have "Dichte" in the same size as the other axis:
I want to have "Dichte" in the same size as the other axis










share|improve this question
























  • Same scale or length of the axis (to make it square) ?
    – b-fg
    Nov 20 '18 at 8:21










  • just the size of the label and the ticks should be the same as for the other axis
    – Simon Kneller
    Nov 20 '18 at 8:34
















0














here is my python code:



fig, ax1 = plt.subplots(figsize=(15,10))
ax1.tick_params(axis='both', labelsize=18)
test.plot.scatter(x='USFM Durchfluß korrigiert', y='Ausgangsdruck', c='Dichte', ax = ax1, colormap="viridis")
ax1.set_xlabel('Durchfluss [m^3/h]', fontsize=18)
ax1.set_ylabel('Ausgangsdruck [bar]', fontsize=18)


I want to have "Dichte" in the same size as the other axis:
I want to have "Dichte" in the same size as the other axis










share|improve this question
























  • Same scale or length of the axis (to make it square) ?
    – b-fg
    Nov 20 '18 at 8:21










  • just the size of the label and the ticks should be the same as for the other axis
    – Simon Kneller
    Nov 20 '18 at 8:34














0












0








0







here is my python code:



fig, ax1 = plt.subplots(figsize=(15,10))
ax1.tick_params(axis='both', labelsize=18)
test.plot.scatter(x='USFM Durchfluß korrigiert', y='Ausgangsdruck', c='Dichte', ax = ax1, colormap="viridis")
ax1.set_xlabel('Durchfluss [m^3/h]', fontsize=18)
ax1.set_ylabel('Ausgangsdruck [bar]', fontsize=18)


I want to have "Dichte" in the same size as the other axis:
I want to have "Dichte" in the same size as the other axis










share|improve this question















here is my python code:



fig, ax1 = plt.subplots(figsize=(15,10))
ax1.tick_params(axis='both', labelsize=18)
test.plot.scatter(x='USFM Durchfluß korrigiert', y='Ausgangsdruck', c='Dichte', ax = ax1, colormap="viridis")
ax1.set_xlabel('Durchfluss [m^3/h]', fontsize=18)
ax1.set_ylabel('Ausgangsdruck [bar]', fontsize=18)


I want to have "Dichte" in the same size as the other axis:
I want to have "Dichte" in the same size as the other axis







python plot scatter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 8:23









Nick Parsons

4,8222721




4,8222721










asked Nov 20 '18 at 8:16









Simon Kneller

31




31












  • Same scale or length of the axis (to make it square) ?
    – b-fg
    Nov 20 '18 at 8:21










  • just the size of the label and the ticks should be the same as for the other axis
    – Simon Kneller
    Nov 20 '18 at 8:34


















  • Same scale or length of the axis (to make it square) ?
    – b-fg
    Nov 20 '18 at 8:21










  • just the size of the label and the ticks should be the same as for the other axis
    – Simon Kneller
    Nov 20 '18 at 8:34
















Same scale or length of the axis (to make it square) ?
– b-fg
Nov 20 '18 at 8:21




Same scale or length of the axis (to make it square) ?
– b-fg
Nov 20 '18 at 8:21












just the size of the label and the ticks should be the same as for the other axis
– Simon Kneller
Nov 20 '18 at 8:34




just the size of the label and the ticks should be the same as for the other axis
– Simon Kneller
Nov 20 '18 at 8:34












1 Answer
1






active

oldest

votes


















0














Try to set the general font size of matplotlib.pyplot and the font size of the ticks equal with this:



import matplotlib as mpl
import matplotlib.pyplot as plt

plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)





share|improve this answer





















  • That solves my problem! Thanks a lot:)
    – Simon Kneller
    Nov 20 '18 at 9:37











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388761%2fdf-plot-scatter-how-can-i-change-the-size-of-the-second-yaxis%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Try to set the general font size of matplotlib.pyplot and the font size of the ticks equal with this:



import matplotlib as mpl
import matplotlib.pyplot as plt

plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)





share|improve this answer





















  • That solves my problem! Thanks a lot:)
    – Simon Kneller
    Nov 20 '18 at 9:37
















0














Try to set the general font size of matplotlib.pyplot and the font size of the ticks equal with this:



import matplotlib as mpl
import matplotlib.pyplot as plt

plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)





share|improve this answer





















  • That solves my problem! Thanks a lot:)
    – Simon Kneller
    Nov 20 '18 at 9:37














0












0








0






Try to set the general font size of matplotlib.pyplot and the font size of the ticks equal with this:



import matplotlib as mpl
import matplotlib.pyplot as plt

plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)





share|improve this answer












Try to set the general font size of matplotlib.pyplot and the font size of the ticks equal with this:



import matplotlib as mpl
import matplotlib.pyplot as plt

plt.rc('font', size=10)
mpl.rc('xtick', labelsize=10)
mpl.rc('ytick', labelsize=10)






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 20 '18 at 8:38









b-fg

1,96411422




1,96411422












  • That solves my problem! Thanks a lot:)
    – Simon Kneller
    Nov 20 '18 at 9:37


















  • That solves my problem! Thanks a lot:)
    – Simon Kneller
    Nov 20 '18 at 9:37
















That solves my problem! Thanks a lot:)
– Simon Kneller
Nov 20 '18 at 9:37




That solves my problem! Thanks a lot:)
– Simon Kneller
Nov 20 '18 at 9:37


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388761%2fdf-plot-scatter-how-can-i-change-the-size-of-the-second-yaxis%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy