0

Matplotlib绘制图表中文字符不能正常显示问题解决一例

Posted by loong on 2019/09/21 in Python |

matplotlib是最流行的python数据可视化绘图库,官方网站对matplotlib的介绍如下:

Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms.

matplotlib的强大和流行就不用再多说了,但是大部分中文用户在使用matplotlib时遇到的第一个问题都是绘制出的图表中汉字显示乱码的问题,例如以下代码:

import matplotlib.pyplot as plt

squares = [1,4,9,16,25]

plt.plot(squares)

plt.title(‘平方数’)

plt.show()

绘制出的图表中中文字符显示成了一个个小方格,根本无法阅读。Matplotlib绘制图表中文字符不能正常显示问题解决一例 阅读全文…

标签:, , , ,

0

品笑话学英语-2019-372

Posted by loong on 2019/07/21 in 英语段子 |

Salad for Dinner

I came home from work this evening and said to my wife, “Are we having salad for dinner?”
“Yes we are, how did you know?” she asked.
I replied, “Because I can’t hear the smoke alarm.”
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-371

Posted by loong on 2019/07/20 in 英语段子 |

Get A Move On, Doggies!

What are the facilities called where huskies are trained to start their sleds moving and to speed them up in the Iditarod sled competition?
Mush Rooms.
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-370

Posted by loong on 2019/07/19 in 英语段子 |

Stuck in the Desert

Why is it quite impossible to starve in the desert?
Because you can always enjoy the sand which is there.
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-369

Posted by loong on 2019/07/18 in 英语段子 |

The High Cost of Beef

An economist asked, “When was beef the highest?”
A 6 year old replied, “When the cow jumped over the moon?”
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-368

Posted by loong on 2019/07/17 in 英语段子 |

Secret Code

“Hocus Pocus” doesn’t work anymore…
I think they changed the password.
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-367

Posted by loong on 2019/07/16 in 英语段子 |

Resolved Settlement

An optimist stays up until midnight to see the new year in…
A pessimist stays up to make sure the old year leaves.
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-366

Posted by loong on 2019/07/15 in 英语段子 |

Smart Dog

A man walked by a table in a hotel and noticed three men and a dog playing cards. The dog was exhibiting an extraordinary performance.
“That is a very smart dog,” the man commented.
“Not really,” said one of the irked players. “Every time he gets a good hand he wags his tail.”
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-365

Posted by loong on 2019/07/14 in 英语段子 |

Mom!

A small boy is sent to bed by his mother. Five minutes later, “Mom.”
“What?”
“I’m thirsty. Can you bring me a glass of water?”
“No. You had your chance. Lights out.”
[Five minutes later] “Mom.”
“What?”
“I’m thirsty. Can I please have a glass of water?”
“I told you no! If you ask again, I’ll have to spank you!”
[Five minutes later] “Mom!”
“WHAT?!”
“When you come in to spank me, can you bring me a glass of water?”
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

0

品笑话学英语-2019-364

Posted by loong on 2019/07/13 in 英语段子 |

Sensitive Habitat

Why do fish live in saltwater?
Because pepper water makes them sneeze.
 
英语笑话_轻松学英语_英文笑话_怎么轻松学英语_好玩又长知识,总有你喜欢的!
每天看一看,托福、雅思轻松过。
 
阅读全文…

标签:, , , , , , , , ,

Copyright © 2012-2020 blog of loong All rights reserved.