Ritu Singh
Problem:
I have a 3D matrix from simulating four random variables during 6 hours 2000 times.
The first term is the number of running from the simulation, the second term is the number of samples, and the last one is the number of variables generated (estimated load, estimated energy to harvest, real load, and real renewable harvested).
Plotting the first run I have:
The code I used for plotting it:
I want to plot something as the following image:
With the axis to be:
So far I have
But I don't know how to implement each number to make a 3D plot. Thank you for any advice!
Solution:
Try this sample to create your 3D chart.
import matplotlib.pyplot as plt import numpy as np fig = plt.figure(figsize=(20, 10)) axl = fig.add_subplot(projection='3d') for z in np.arange(0, 40, 10): x = np.arange(20) y = np.random.randn(20) axl.bar(x, y, zs=z, zdir='y') axl.set_xlabel('x', fontsize=15) axl.set_ylabel('y', fontsize=15) axl.set_zlabel('z', fontsize=15) plt.show()
Suggested blogs:
>Fix ASP.NET Core Model Binding Not Working issue.
>How to create a zip file and return it to client for download?
>How to Group large number of data based on CreatedDate(DateTime)?
>Issues converting ASPX Web app from .net 3.5 to 4.8.1
>Fix Asp.net issue: AjaxControlToolkit FileUpload not working
>Using Fetch in JS to call a server-side method (ASP.NET)
>Need input on Standalone SSRS SQL Server 2016 Report Builder
>How to fix: View not found even though it exists issue?
>Fixing C# sync over async implementations
>How to optimize getting multiple documents 'one by one' in Firestore?
>How to use/set up Node Express sessions?