plot.ts aktualisiert
							parent
							
								
									21f193263c
								
							
						
					
					
						commit
						7a85fd29d1
					
				
							
								
								
									
										2
									
								
								plot.ts
								
								
								
								
							
							
						
						
									
										2
									
								
								plot.ts
								
								
								
								
							|  | @ -11,5 +11,5 @@ export const plot = (data) => { | |||
| export const plotxy = (xmin, xmax, step, y) => { | ||||
|   const x = Array.from({length: (xmax - xmin)/step}, (_, i) => i * step + xmin) | ||||
|   const data = x.map(x => ({x, y: y(x)})) | ||||
|   return Plot.line(data, {x: "x", y: "y"}).plot({y: {grid: true}, document}) | ||||
|   return Plot.line(data, {x: "x", y: "y"}).plot({y: {grid: true}, x: {grid: true}, document}) | ||||
| } | ||||
		Loading…
	
		Reference in New Issue