Bottom Page

• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 Superimpose figures Scientifix Programmer named Tim Posts: 11 Threads: 5 Joined: Oct 2016 Reputation: 0 Likes received: 0 #1 Oct-31-2016, 04:10 PM Hello, I have the following code : ```from scipy.spatial import ConvexHull from scipy.spatial import convex_hull_plot_2d import matplotlib.pyplot as plt import numpy as np points = np.random.rand(30, 2) Plot = True def min_convex(points):       oignon_layers = []           while len(points) >= 4:         layer = ConvexHull(points)         oignon_layers.append(layer)         points = np.delete(points, layer.vertices, axis=0)              if Plot == True:         plt.plot(points[:,0], points[:,1], 'o')         for layer in oignon_layers:             convex_hull_plot_2d(layer)     plt.show() ```And I would like to superimpose all figures on one (having all points and convex layers on one figure) What should I do ? Thanks PS: for convex hulls : https://docs.scipy.org/doc/scipy/reference/spatial.html nilamo Last Thursdayist Posts: 3,257 Threads: 87 Joined: Sep 2016 Reputation: 133 Likes received: 731 #2 Nov-07-2016, 07:27 PM What actually happens now? Nitram Programmer named Tim Posts: 9 Threads: 2 Joined: Aug 2019 Reputation: 0 Likes received: 0 #3 Aug-16-2019, 04:06 PM interesting query « Next Oldest | Next Newest »

Top Page

 Possibly Related Threads... Thread Author Replies Views Last Post Loss and Accuracy Figures. Hani 3 358 May-20-2020, 06:55 PM Last Post: jefsummers How to create matplotlib subplots from figures vitaly 3 331 Mar-02-2020, 12:58 AM Last Post: scidam How to superscript figures? Felipe 0 1,343 Feb-06-2017, 05:56 PM Last Post: Felipe

Forum Jump:

Users browsing this thread: 1 Guest(s)