Matplotlib output messed up in Kubuntu 18Ubuntu 14.04 upgrade causes matplotlib errorPython 2.7 matplotlib provides error?matplotlib not working in Pycharm 4.5.3Dell Inspiron does not go into GRUB after shutdown from Kubuntu17.04: using matplotlib with GTK-based backend?installation issue with matplotlibProblem in installing matplotlib ubuntu 16.04What is a good, default backend for matplotlib

Unable to Install NumPy on Raspberry Pi 3

Cryptic Battle: Welcome to PSE!

Linear fitting without intercept

How can I describe this pattern found on the back of a playing card?

Is asymptotic ordering preserved when taking log of both functions?

Why don't combat aircraft have rear-facing *laser* weapons?

Degraded Array. RAID 6 with three disk failure

If authors leave out diacritics, should I correct them or leave it as written?

Backwards Alphabet Triangle

Why is Macron seemingly opposing an article 50 extension?

python search replace and join with delimiter

Urgently need pre-paid debit card to pay debt collector

It is alright to include students' first names in a teaching statement?

Does sleeping fewer hours than needed cause common cold?

Do dams reduce the flow of river downstream?

Did the USA have a political agenda in Syria beyond simply the containment of ISIS?

7-Zip seems unable to compress zero-filled virtual disk image after 1.8 GB

Which months are best for seeing nemophilas in Japan?

Why does this matrix have zero determinant?

How to rotate with respect to a specific point in Asymptote?

Why do companies pay fixed dividends instead of fluid ones?

Google Search Console is making up URLs which don't exist in my Sitemap and then complains that these pages have error

80286 real mode emulator for 8086

Why is reverb typically called "wet' or "drippy"?



Matplotlib output messed up in Kubuntu 18


Ubuntu 14.04 upgrade causes matplotlib errorPython 2.7 matplotlib provides error?matplotlib not working in Pycharm 4.5.3Dell Inspiron does not go into GRUB after shutdown from Kubuntu17.04: using matplotlib with GTK-based backend?installation issue with matplotlibProblem in installing matplotlib ubuntu 16.04What is a good, default backend for matplotlib






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I run the same Python3 code on several computers for plotting data. On one of them, I have got Ubuntu 16.04, the others are Kubuntu 18.04 and 18.10. In Kubuntu, the plot is completely messed up, the one that I get in Ubuntu is definitely the right one.



The characteristics of the mess also differs from time to time and from computer to computer. So these points sometimes follow a horizontal trend, sometimes it is completely messed up, but I could not find any systematic difference in the environment.



The physical size of the plot in Kubuntu is also smaller than it should be.



I have encountered the same issue for the plot of some (but not all) of my other programs as well. So for some code, it is the same as what I get from the Ubuntu machine, sometimes it is like the picture below.



I installed matplotlib via pip3 and tkinter in the same manner on all computers, therefore I guess that the only difference is the distribution and version. I also tried to run it in Python2, but the output is the same. (Although there may be other aspects that I do not consider.)



The top image is from Kubuntu, the bottom is from Ubuntu for the same dataset.



The output from Kubuntu



enter image description here



Have you got any idea what can go wrong?










share|improve this question


























  • Do you import the data from a file?

    – user3140225
    Jun 14 at 21:58











  • Is it exactly the same data ? meaning, you can test the data set #1 on an ubuntu pc, and the data set #2 on kubuntu pc, and the results are still the same ?

    – solsTiCe
    Jun 15 at 7:07











  • Yes, I import the data from the same datafile on both PC. I save the code and the data file to Dropbox and work from that folder so there should not be difference neither in the input file nor the code.

    – Blanka V.
    Jun 15 at 14:54






  • 1





    Perhaps for some reason the data type has changed. Is it possible for you to explicitly change the data type to numeric and rerun the code?

    – user3140225
    Jun 15 at 20:01











  • Thank you very much for the hint! I believed that every data was imported as float, but it turned out that some numbers remained as string. However, some of the computers still handled the data type well, that's why the different plots were a bit strange, but after correcting the import, all of them are nice.

    – Blanka V.
    Jul 3 at 16:25

















0

















I run the same Python3 code on several computers for plotting data. On one of them, I have got Ubuntu 16.04, the others are Kubuntu 18.04 and 18.10. In Kubuntu, the plot is completely messed up, the one that I get in Ubuntu is definitely the right one.



The characteristics of the mess also differs from time to time and from computer to computer. So these points sometimes follow a horizontal trend, sometimes it is completely messed up, but I could not find any systematic difference in the environment.



The physical size of the plot in Kubuntu is also smaller than it should be.



I have encountered the same issue for the plot of some (but not all) of my other programs as well. So for some code, it is the same as what I get from the Ubuntu machine, sometimes it is like the picture below.



I installed matplotlib via pip3 and tkinter in the same manner on all computers, therefore I guess that the only difference is the distribution and version. I also tried to run it in Python2, but the output is the same. (Although there may be other aspects that I do not consider.)



The top image is from Kubuntu, the bottom is from Ubuntu for the same dataset.



The output from Kubuntu



enter image description here



Have you got any idea what can go wrong?










share|improve this question


























  • Do you import the data from a file?

    – user3140225
    Jun 14 at 21:58











  • Is it exactly the same data ? meaning, you can test the data set #1 on an ubuntu pc, and the data set #2 on kubuntu pc, and the results are still the same ?

    – solsTiCe
    Jun 15 at 7:07











  • Yes, I import the data from the same datafile on both PC. I save the code and the data file to Dropbox and work from that folder so there should not be difference neither in the input file nor the code.

    – Blanka V.
    Jun 15 at 14:54






  • 1





    Perhaps for some reason the data type has changed. Is it possible for you to explicitly change the data type to numeric and rerun the code?

    – user3140225
    Jun 15 at 20:01











  • Thank you very much for the hint! I believed that every data was imported as float, but it turned out that some numbers remained as string. However, some of the computers still handled the data type well, that's why the different plots were a bit strange, but after correcting the import, all of them are nice.

    – Blanka V.
    Jul 3 at 16:25













0












0








0








I run the same Python3 code on several computers for plotting data. On one of them, I have got Ubuntu 16.04, the others are Kubuntu 18.04 and 18.10. In Kubuntu, the plot is completely messed up, the one that I get in Ubuntu is definitely the right one.



The characteristics of the mess also differs from time to time and from computer to computer. So these points sometimes follow a horizontal trend, sometimes it is completely messed up, but I could not find any systematic difference in the environment.



The physical size of the plot in Kubuntu is also smaller than it should be.



I have encountered the same issue for the plot of some (but not all) of my other programs as well. So for some code, it is the same as what I get from the Ubuntu machine, sometimes it is like the picture below.



I installed matplotlib via pip3 and tkinter in the same manner on all computers, therefore I guess that the only difference is the distribution and version. I also tried to run it in Python2, but the output is the same. (Although there may be other aspects that I do not consider.)



The top image is from Kubuntu, the bottom is from Ubuntu for the same dataset.



The output from Kubuntu



enter image description here



Have you got any idea what can go wrong?










share|improve this question















I run the same Python3 code on several computers for plotting data. On one of them, I have got Ubuntu 16.04, the others are Kubuntu 18.04 and 18.10. In Kubuntu, the plot is completely messed up, the one that I get in Ubuntu is definitely the right one.



The characteristics of the mess also differs from time to time and from computer to computer. So these points sometimes follow a horizontal trend, sometimes it is completely messed up, but I could not find any systematic difference in the environment.



The physical size of the plot in Kubuntu is also smaller than it should be.



I have encountered the same issue for the plot of some (but not all) of my other programs as well. So for some code, it is the same as what I get from the Ubuntu machine, sometimes it is like the picture below.



I installed matplotlib via pip3 and tkinter in the same manner on all computers, therefore I guess that the only difference is the distribution and version. I also tried to run it in Python2, but the output is the same. (Although there may be other aspects that I do not consider.)



The top image is from Kubuntu, the bottom is from Ubuntu for the same dataset.



The output from Kubuntu



enter image description here



Have you got any idea what can go wrong?







kubuntu python matplotlib plot






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked Jun 14 at 21:36









Blanka V.Blanka V.

5865 silver badges5 bronze badges




5865 silver badges5 bronze badges















  • Do you import the data from a file?

    – user3140225
    Jun 14 at 21:58











  • Is it exactly the same data ? meaning, you can test the data set #1 on an ubuntu pc, and the data set #2 on kubuntu pc, and the results are still the same ?

    – solsTiCe
    Jun 15 at 7:07











  • Yes, I import the data from the same datafile on both PC. I save the code and the data file to Dropbox and work from that folder so there should not be difference neither in the input file nor the code.

    – Blanka V.
    Jun 15 at 14:54






  • 1





    Perhaps for some reason the data type has changed. Is it possible for you to explicitly change the data type to numeric and rerun the code?

    – user3140225
    Jun 15 at 20:01











  • Thank you very much for the hint! I believed that every data was imported as float, but it turned out that some numbers remained as string. However, some of the computers still handled the data type well, that's why the different plots were a bit strange, but after correcting the import, all of them are nice.

    – Blanka V.
    Jul 3 at 16:25

















  • Do you import the data from a file?

    – user3140225
    Jun 14 at 21:58











  • Is it exactly the same data ? meaning, you can test the data set #1 on an ubuntu pc, and the data set #2 on kubuntu pc, and the results are still the same ?

    – solsTiCe
    Jun 15 at 7:07











  • Yes, I import the data from the same datafile on both PC. I save the code and the data file to Dropbox and work from that folder so there should not be difference neither in the input file nor the code.

    – Blanka V.
    Jun 15 at 14:54






  • 1





    Perhaps for some reason the data type has changed. Is it possible for you to explicitly change the data type to numeric and rerun the code?

    – user3140225
    Jun 15 at 20:01











  • Thank you very much for the hint! I believed that every data was imported as float, but it turned out that some numbers remained as string. However, some of the computers still handled the data type well, that's why the different plots were a bit strange, but after correcting the import, all of them are nice.

    – Blanka V.
    Jul 3 at 16:25
















Do you import the data from a file?

– user3140225
Jun 14 at 21:58





Do you import the data from a file?

– user3140225
Jun 14 at 21:58













Is it exactly the same data ? meaning, you can test the data set #1 on an ubuntu pc, and the data set #2 on kubuntu pc, and the results are still the same ?

– solsTiCe
Jun 15 at 7:07





Is it exactly the same data ? meaning, you can test the data set #1 on an ubuntu pc, and the data set #2 on kubuntu pc, and the results are still the same ?

– solsTiCe
Jun 15 at 7:07













Yes, I import the data from the same datafile on both PC. I save the code and the data file to Dropbox and work from that folder so there should not be difference neither in the input file nor the code.

– Blanka V.
Jun 15 at 14:54





Yes, I import the data from the same datafile on both PC. I save the code and the data file to Dropbox and work from that folder so there should not be difference neither in the input file nor the code.

– Blanka V.
Jun 15 at 14:54




1




1





Perhaps for some reason the data type has changed. Is it possible for you to explicitly change the data type to numeric and rerun the code?

– user3140225
Jun 15 at 20:01





Perhaps for some reason the data type has changed. Is it possible for you to explicitly change the data type to numeric and rerun the code?

– user3140225
Jun 15 at 20:01













Thank you very much for the hint! I believed that every data was imported as float, but it turned out that some numbers remained as string. However, some of the computers still handled the data type well, that's why the different plots were a bit strange, but after correcting the import, all of them are nice.

– Blanka V.
Jul 3 at 16:25





Thank you very much for the hint! I believed that every data was imported as float, but it turned out that some numbers remained as string. However, some of the computers still handled the data type well, that's why the different plots were a bit strange, but after correcting the import, all of them are nice.

– Blanka V.
Jul 3 at 16:25










0






active

oldest

votes













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1151167%2fmatplotlib-output-messed-up-in-kubuntu-18%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1151167%2fmatplotlib-output-messed-up-in-kubuntu-18%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

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?