This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import tkinter as tk | |
from tkinter import ttk | |
from tkinter import Scale | |
from tkinter import HORIZONTAL | |
import numpy as np | |
LARGE_FONT = ("Verdana", 12) | |
class BezierCurveApp(tk.Tk): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright: This document has been placed in the public domain. | |
""" | |
Taylor diagram (Taylor, 2001) implementation. | |
Note: If you have found these software useful for your research, I would | |
appreciate an acknowledgment. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' Create a closed track from cubic Bezier curves, and animate a circle | |
following the track at constant speed. | |
https://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B%C3%A9zier_curves | |
https://gist.github.com/PM2Ring/d6a19f5062b39467ac669a4fb4715779 | |
Press the Add button to add black control dots to the Canvas. The first |