Sample Header Ad - 728x90

Plotting a two dimensional array using matplotlib python

0 votes
1 answer
1149 views
I want to be able to plot an array of functions that are stored as a 2-d array using matplotlib. They all have the same independent variable. Specifically, P=zerros((ntotx, ntoty),float) x=zeros(ntotx,float) So that the x-array is the independent variable with ntotx values, and the P-array is the set of ntoty functions of x. I know I can break them out as individual functions, and plot them, but that makes for pretty clunky code.
Asked by nardis_miles (13 rep)
Jul 11, 2023, 08:24 PM
Last activity: Jul 17, 2023, 11:38 AM