Skip to content

[Bug]: This code does work properly in windows #25545

@Vinay19742002

Description

@Vinay19742002

Bug summary

Screenshot (1)
This is the output I am getting but in the linux system this code is working properly and also working in ipad .
So please fix it as soon as possible.

Code for reproduction

import matplotlib.pyplot as plt
from matplotlib.ticker import AutoMinorLocator
hours=[1,2,3,4,5,6,7,8,9,10]
temp=[14,13,12,15,16,17,18,24,29,32]
plt.plot(hours,temp,marker='o',markersize=5,color='r',
         linewidth='1',linestyle='dashed',markeredgecolor='black',markerfacecolor='yellow')
plt.xlabel("Hours")
plt.ylabel("Temp. in Celsius")
plt.title("Hours verses Temperature")
plt.xlim(0,12)
plt.ylim(0,35)
plt.grid(True)
yaxisminor=AutoMinorLocator(10)
plt.axes().yaxis.set_minor_locator(yaxisminor)
plt.axes().yaxis.set_tick_params(which='minor' , left='off' , size= 10)
plt.show()

Actual outcome

Screenshot (1)

Expected outcome

Figure_1

Additional information

No response

Operating system

Windows

Matplotlib Version

3.6.3

Matplotlib Backend

No response

Python version

3.9.7

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions