Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How plotsubplot in Python
#1
Photo 
How can We plot subplot similar for four in one in Python using matplotlib or Any Python Library
  1. See the Url
https://ibb.co/GspTngX
Reply
#2
Have you even tried looking this up yourself in the matplotlib docs? If not, why not?
Reply
#3
@ndc85430 i have tried but there is difficult to get similar the posted picture after editing different way and search.... but failed.
Reply
#4
Show us what you tried and where the difficulty is.
Reply
#5
I want to plot similar to this https://ibb.co/GspTngX
but there is i don't know how sketch not exact similar but 90% similar properties for my own data like line color grade for x and y axis and lines plot where time must show both side on y axis etc. you know more to check my own graph
code for my own graph.
""
import matplotlib.pyplot as plt

# The data
x =  [1, 2, 3, 4, 5]
y1,y2,y3 = [2,  15, 27, 35, 40],[10, 40, 45, 47, 50], [5,  25, 40, 45, 47]


# Initialise the figure and axes.
fig, axes = plt.subplots(2,2, figsize=(10,6), sharex=True, sharey=True, dpi=120)

# Set the title for the figure
fig.suptitle('', fontsize=15)

# Draw all the lines in the same plot, assigning a label for each one to be
# shown in the legend.
ax.plot(x, y1, color="red", label="My Line 1")
ax.plot(x, y2, color="green", label="My Line 2")
ax.plot(x, y3, color="blue", label="My Line 3")

# Add a legend, and position it on the lower right (with no box)
plt.legend(loc="lower right", title="Legend Title", frameon=False)
plt.title('Randomoized data')
plt.xlabel('Number of Retrived Documents')
plt.ylabel('Precision')
plt.show()
plt.show()
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020