You can use scatter: import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 2*np.pi, 10) y = np.sin(x) plt.scatter(x, y) plt.show() Alternatively: plt.plot(x, y, 's') EDIT: If you want error bars you can do: plt.errorbar(x, y, yerr=err, fmt='o') ...

ios,math,curve,linear-interpolation,beizer

It seems you want an approximate parametrization by arc length. For the quadratic case, there is a closed-form expression for the arc length of a Bézier curve, but it is complicated and you still need table lookup. These papers discuss general techniques: Approximate Arc Length Parametrization, in SIBGRAPI 1996. Adaptive...

html,css,css3,css-shapes,curve

You can do it like in the below snippet. The method used to achieve the shape is as given below: The main div element only has a top, bottom and left border. The right border is nullified because the element and its arrows needs to be transparent. With a transparent...

Create another column that converts your date and time to "date and time" by using SUM(<Date Cell>,<Time Cell>) Excel would automatically do the date and time addition for you Tried this in Excel 2013 and it works well....

command-line,imagemagick,notepad++,gnuplot,curve

Preliminaries: GnuPlot is a command line mathematical program for plotting data and generating other mathematical tasks. ImageMagick is a command line photo editing program. I'm currently running Windows 7 and GnuPlot 4.6 Here are the steps. Install GnuPlot. Download the fx_control.txt file from http://www.imagemagick.org/Usage/color_mods/fx_control.txt. This file contains the control points....

tracking,velocity,curve,kinematics

What you want to plot are the known positions of the vehicle across time. From the available data set we can infer that the polar coordinates are given by the steering angle (which seems to be absolute - deduct a quarter turn) and the instantaneous radius of curvature. Convert from...

Because curve() is somewhat magic and by default requires an expression written as a function of x (literally): from ?curve. expr: The name of a function, or a call or an expression written as a function of ‘x’ which will evaluate to an object of the same length as ‘x’....

This is possible using svg. For responsiveness remove the svg's width and height attributes, add viewBox="0 0 400 150" then try changing #image's width and height, the svg will respond to its width and height. Demo on Fiddle demonstrating responsive shape. Browser support for this approach - This will work...

matlab,graph,coordinates,draw,curve

Not really, but now there is: function topLevel %// parameters xrange = [0 100]; yrange = [1e-4 1e4]; %// initialize figure, plot figure, clf, hold on plot(NaN, NaN); axis([xrange yrange]); set(gca, 'YScale', 'log') t = text(sum(xrange)/2, sum(yrange)/2, ... '<< Need at least 3 points >>',... 'HorizontalAlignment', 'center'); %// Main loop...

I assume you want to stretch the parts individually by moving the four points. Therefore it is a simple operation of adjusting all the points within the bounds. The overall shape of the curve is maintained as long as your constraint of non-overlapping is fulfilled. Of course it is not...

r,if-statement,for-loop,yield,curve

First, create a data frame of differences diff by rows using apply. We have to transpose t() the result to get back data in a long format. Then get a vector of rows where all the diff are positive. These correspond to normal curves. d_diff <- t(apply(FedYieldCurve, 1, diff)) #difference...

python,matplotlib,plot,curve,arrow

I'm not sure I completely follow you, but my approach would be to use annotate rather than arrow (just leave the text field blank). You can specify one end of the arrow in data coordinates and the other in offset pixels: but you do have to map your forces (indicating...

ios,objective-c,core-graphics,drawrect,curve

I'd suggest constructing a path for the entire outline of the desired shape and then "fill" that path with the desired color. That eliminates any risk of any gaps or anything not quite lining up. Thus, this path might consisting of an arc for the outside of the arrow, two...

There is a file exchange function Nurbs2IGES that might do the trick for you as well as an igesout function. Also, depending on the CAD software you are trying to use, many such as Solidworks allow you to import a text file of points which can then be connected in...

matlab,curve-fitting,curve,curves

A quick (and potentially easy) solution method would be to pose the curve fit as a minimization problem. Define a correlation function that takes the fit parameters as an argument: % x(1) == A0; x(2) == W Jfunc = @(x) x(1).*(298).^2.*exp(-(x(2)-((((1.6e-19)^3)/(4*pi*2.3*8.854e-12))^0.5).*E.^0.5)./((1.38e-23).*298)); Then a objective function to minimize. Since you have...

eclipse,libgdx,curve,spline,catmull-rom-curve

Your code should work fine according to the api and the source. The class IS generic. You must be using some old version of the class. Update to the latest version and the error should be solved. Hope this helps....

matplotlib,line,histogram,curve

Using a kde did give me the plot I wanted, but in fact I would suggest using seaborn for this, as the module has a command distplot which plots a histogram and density plot at the same time. Examples of using seaborn given here: http://nbviewer.ipython.org/github/mwaskom/seaborn/blob/master/examples/plotting_distributions.ipynb...

A lot could be done to streamline / vectorize this code, but for a smallish diagram this works pretty well: # get that data x <- c(0.1, 0.3, 0.5, 0.7, 0.9 ) # reaction axis y <- c(-5.057920, -5.057859, -5.057887,-5.057674, -5.057919 ) # energies I'm going to make a little...

r,ggplot2,histogram,curve,density-plot

Use stat_density instead of geom_density like this: ggplot(dataset, aes(x=age)) + geom_histogram(aes(y=..density..), colour="black", fill="white") + stat_density(colour="blue", geom="line", position="identity") + stat_function(fun=dnorm, args=list(mean=mean(dataset_with_victims$TV_Alter), sd=sd(dataset_with_victims$TV_Alter))) + stat_function(fun=dgamma, args=list(shape=mean(dataset_with_victims$TV_Alter)^2/sd(dataset_with_victims$TV_Alter)^2,...

javafx-8,curve,variations,thickness

You can't vary the stroke width. You can simulate this behavior though, by creating a path which layers multiple curves, which start at different starting positions but converge to a single point. import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.paint.Color; import javafx.scene.shape.*; import javafx.stage.Stage; import java.util.Random; public class DividedPath extends...

matplotlib,plot,orientation,curve

Interesting question. I have no time for more than a quick and dirty hack, so here we go (liberally inspired from the code in mpl streamplot) import matplotlib.lines as mlines import matplotlib.patches as mpatches import matplotlib.pyplot as plt import numpy as np def add_arrow_to_line2D( axes, line, arrow_locs=[0.2, 0.4, 0.6, 0.8],...

javascript,algorithm,curve,bezier,cubic-spline

It's Catmull-Rom fitting: the code tries to find an appropriate tangent through point X, based on the location of points X-1 and X+1, such that the tangent is parallel to the line (X-1)--(X+1), and then fiddles with the control points that yields, to make sure the "incoming" and "outgoing" tangents...

You can use symbolic variables with ezplot. syms x y % makes symbolic variables h1 = ezplot('-4*x^2*y^2+x^2+y^2'); % plots the equation axis equal set(h1, 'Color', 'k'); Or you can define a function, f = @(x,y) -4.*x.^2.*y.^2+x.^2+y.^2; h1 = ezplot(f); set(h1, 'Color', 'k'); It won't be easy to have the axis...