-
Notifications
You must be signed in to change notification settings - Fork 23
Workng update #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Workng update #101
Conversation
| return axis | ||
|
|
||
|
|
||
| def plot_points_3d(coordinates, axis=None, colour='red', size=15, title=None, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you change the name to plot_points_3d_matplotlib?
| ax.grid(True) | ||
| ax.set_box_aspect([1, 1, 0.5]) | ||
| plt.tight_layout() | ||
| plt.show() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in all of these functions, we return the axis instead of plotting inside the function - remove these last two lines and change to return ax
| title : str, optional | ||
| Figure title, defaults to empty title. | ||
| """ | ||
| fig = plt.figure(figsize=(10, 8)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check how other matplotlib functions are written, where we let the user provide some external figure/axes and, if not, we create create ones
| Size of the plotted points, defaults to 15. | ||
| title : str, optional | ||
| Figure title, defaults to empty title. | ||
| """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check other matplotlib functions to add display test at top
| """ | ||
| fig = plt.figure(figsize=(10, 8)) | ||
| ax = fig.add_subplot(111, projection='3d') | ||
| ax.set_title('3D View: Tangent Points with Out-of-Plane Displacement') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title should be provided externally as parameter, as done in other functions like this
Two changes made to facilitate jobs. Improvement to findomp and a 3D geometry plotter that doesn't depend on mayavi