Disable points scaling in 3D scatter plots in Mayavi
By : Pankaj
Date : March 29 2020, 07:55 AM
Hope this helps The function mayavi.mlab.points3d has the scale_mode argument which can be set to 'none'. For example: code :
In [23]: t = linspace(0, 4*numpy.pi, 20)
In [24]: x = sin(2*t)
In [25]: y = cos(t)
In [26]: z = cos(2*t)
In [27]: s = 2 + sin(t)
In [28]: mlab.points3d(x, y, z, s, colormap="copper", scale_mode='none')
Out[28]: <mayavi.modules.glyph.Glyph at 0x9fd85f0>

adding new points in a scatter plot
By : The Angular
Date : March 29 2020, 07:55 AM
hope this fix your issue Use chart.series[1].data to get the current serie data and then use chart.series[1].setData to update it's data. code :
function requestData() {
var chart = $('#container').highcharts(),
serie = chart.series[1];
// get serie data
var data = serie.data;
// append points to data
for (var i = 0; i < 1000; i++) {
data.push([
Math.random() * 100,
Math.random() * 80
]);
}
// update serie data
serie.setData(data);
}
function requestData() {
var chart = $('#container').highcharts();
// append points to data
for (var i = 0; i < 1000; i++) {
chart.series[1].addPoint([
Math.random() * 100,
Math.random() * 80
], false);
}
chart.redraw();
}

Scale Mayavi scatter plot
By : Rajeev Kr Mahato
Date : March 29 2020, 07:55 AM
hope this fix your issue I'm trying to produce a 3D scatter plot in mayavi. However, the scales of the input data are very different. See a test example below: , Got it using extent parameter in quite an unexpected way: code :
s = mlab.points3d(x, y, z, mode = 'point', extent = [0,1,0,1,0,1])
mlab.axes(s, ranges = [min(x), max(x), min(y), max(y), min(z), max(z)])

Adding points to an existing scatter plot with plotly
By : A.Moodley
Date : March 29 2020, 07:55 AM
hope this fix your issue Suppose I have the following data frames : , You can try: code :
colnames(df2) < c("a", "b")
df1$gr < 1
df2$gr < 2
df < rbind(df1, df2)
plot_ly(data = df, x = ~a, y = ~b, color = ~factor(gr), type = "scatter")

Adding points with error bars into a Matlab scatter plot
By : Jonathan Aghimien
Date : March 29 2020, 07:55 AM
I wish this helpful for you Once you realize that line segments will probably suffice for your purpose (and may be less ugly than the usual error bars with the whiskers, depending on the number of points), you can do something pretty simple (which applies to probably any plotting package, not just MATLAB). Just plot a scatter, then write a loop to plot all linesegments you want corresponding to error bars (or do it in the opposite order like I did with error bars first then the scatter plot, depending if you want your dots or your error bars on top).

