For faster navigation, this Iframe is preloading the Wikiwand page for File:Cusp catastrophe animation gif.gif.

File:Cusp catastrophe animation gif.gif

Cusp_catastrophe_animation_gif.gif(480 × 480 pixels, file size: 21.32 MB, MIME type: image/gif, looped, 300 frames, 10 s)

Summary

Description
English: ```python

from mpl_toolkits import mplot3d import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation

video_length = 10 # in seconds video_fps = 30 num_frames = video_fps * video_length angle_per_frame = (360 / num_frames)

stride = 5 width = 3

a = np.linspace(-width, width, 500) b = a x, y = np.meshgrid(a, b) z = np.clip(-0.1 * (x**4 + y**4) - y**3 + x * y

           , -5, 5)

plt.tick_params(left = False) fig = plt.figure(figsize= (10,10)) ax = plt.axes(projection ='3d') frame = ax.plot_wireframe(x, y, z, color ='#4a5a90', rstride=stride, cstride=stride)

def init():

   ax.set_box_aspect((1,1,1))
   ax.view_init(0, -90)
   ax.axis('off')
   ax.set_xlim(-1,1)
   ax.set_ylim(-1,1)
   ax.set_zlim(-1, 1)
   return frame,
  1. animation function. This is called sequentially

def animate(i):

   ax.view_init(0, -90 + angle_per_frame * i)
   return frame,
  1. call the animator. blit=True means only re-draw the parts that have changed.

anim = animation.FuncAnimation(fig, animate, init_func=init,

                              frames=num_frames, blit=True)

anim.save('cusp.mp4', fps=video_fps, extra_args=['-vcodec', 'libx264'])

plt.show()

```
Date
Source Own work
Author Cosmia Nebula

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Cusp catastrophe, with surface $z = -0.1 (x^4 + y^4) - y^3 + xy$.

Items portrayed in this file

depicts

4 January 2023

image/gif

f487f0ca767c68d1254e7a905cd3bdee416cfff5

22,356,559 byte

10.009999999999971 second

480 pixel

480 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:03, 4 January 2023Thumbnail for version as of 22:03, 4 January 2023480 × 480 (21.32 MB)Cosmia NebulaUploaded own work with UploadWizard

File usage

The following pages on the English Wikipedia use this file (pages on other projects are not listed):
{{bottomLinkPreText}} {{bottomLinkText}}
File:Cusp catastrophe animation gif.gif
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?