Write a function graph_xyz (filename) which takes a filename (a csv file) which contains columns for X, Y and Z directio

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

Write a function graph_xyz (filename) which takes a filename (a csv file) which contains columns for X, Y and Z directio

Post by correctanswer »

Write A Function Graph Xyz Filename Which Takes A Filename A Csv File Which Contains Columns For X Y And Z Directio 1
Write A Function Graph Xyz Filename Which Takes A Filename A Csv File Which Contains Columns For X Y And Z Directio 1 (144.99 KiB) Viewed 71 times
Write a function graph_xyz (filename) which takes a filename (a csv file) which contains columns for X, Y and Z direction points per line (example file is found here: visualisationF1.csv). This function should create a line graph with all three components in a single chart displayed with dots. To filter out noise, all negative values will be turned to positive (i.e., take the absolute value) before plotting. Finally, a polynomial regression (degree 2) for each column is added as a solid line. No other visual enhancements should be made. Using the example file, your graph should look something like this 25 20 15 10 0 0 10 20 30 40 50 60 Hint: use polyfit and polyval methods from np. For example: Test Result plt1= graph_xyz ('visualisationF1.csv') Pass! save_plt (plt1, "output.png") plt2 = ans('visualisationF1.csv') save_plt (plt2, "ans.png") val= main("output.png", "ans.png") if val < 0.005: print("Pass!") else: print("Your graph is different to the expected output, difference: {:.4f}". format (val)) Answer: (penalty regime: 0, 10, 20, ... %)
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply