How plotsubplot in Python
 How plotsubplot in Python Anldra12 Wafer-Thin Wafer Posts: 93 Threads: 25 Joined: Apr 2021 Reputation:   Sep-04-2021, 06:57 PM (This post was last modified: Sep-04-2021, 06:57 PM by Anldra12.) How can We plot subplot similar for four in one in Python using matplotlib or Any Python Library See the Url https://ibb.co/GspTngX Reply Posts: 1,545 Threads: 1 Joined: Apr 2017 Reputation: Sep-04-2021, 07:21 PM Have you even tried looking this up yourself in the matplotlib docs? If not, why not? Reply Anldra12 Wafer-Thin Wafer Posts: 93 Threads: 25 Joined: Apr 2021 Reputation: Sep-04-2021, 07:44 PM @ndc85430 i have tried but there is difficult to get similar the posted picture after editing different way and search.... but failed. Reply Posts: 1,545 Threads: 1 Joined: Apr 2017 Reputation: Sep-05-2021, 03:59 AM Show us what you tried and where the difficulty is. Reply Anldra12 Wafer-Thin Wafer Posts: 93 Threads: 25 Joined: Apr 2021 Reputation: Sep-05-2021, 08:01 AM (This post was last modified: Sep-05-2021, 08:01 AM by Anldra12.) I want to plot similar to this 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