3d plotting of Fault Plane
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import axes3d, Axes3D
dfSurface = pd.read_csv(r'C:\Users\admin\Desktop\myDemos\Published\pyArt3- BasicSeismicInterp\interpData\dataForSeisInterp\Fault3D.txt');
print(dfSurface)
def SurfacePlottingFunction(E,A):
fig = plt.figure(figsize=(14,9))
ax = fig.gca(projection ='3d') #get current axis
ax.plot_trisurf(dfSurface['X'], dfSurface['Y'], dfSurface['Z']*-1, cmap = 'rainbow')
ax.view_init(elev = E, azim = A)
plt.show()
from ipywidgets import interactive
iplot = interactive(SurfacePlottingFunction,
E = (-90,90,5),
A = (-90,90,5)
)
iplot
Watch video Interactively rotating a fault plane in Python online without registration, duration hours minute second in high quality. This video was added by user WHIMSICAL VIBES! 23 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 116 once and liked it 0 people.