Spotfire curve fitting - spotfire

I have an scatter plot, and want to see the line only fitting for marked points. Is there any way to do that in Spotfire? I know how to make a line fitting for all points but I don’t know how to fit the line base on the markings. Thanks in advance for your help.
MS

I don't think there is a setting to have a best fit line only on the marked data. However, you could create a details visualization based on the marked data and then perform your best fit on that.

Related

How to select or highlight the missing areas/parts of polygon in QGIS using python

I'm trying to highlight the missing areas/parts of the polygon, but don't which QGIS function or strategy will help me to do so.
With a temporary polygon layer which cover the whole area of polygon that has missing areas, and then taking difference of these layer features, I can find geometries(from temporary layer) of missing areas but don't how to the missing area of original/main layer.
Please Help.
Thanks

Overlapping/crowded labels on y-axis python [duplicate]

This question already has answers here:
How to change spacing between ticks
(4 answers)
Closed 5 months ago.
I'am kind of in a rush to finish this for tomorrows presentation towards the project owner. We are a small group of economic students in germany trying to figure out machine learning with python. We set up a Random Forest Classifier and are desperate to show the estimators important features in a neat plot. By applying google search we came up with the following solution that kind of does the trick, but leaves us unsatisfied due to the overlapping of the labels on the y-axis. The code we used looks like this:
feature_importances = clf.best_estimator_.feature_importances_
feature_importances = 100 * (feature_importances / feature_importances.max())
sorted_idx = np.argsort(feature_importances)
pos = np.arange(sorted_idx.shape[0])
plt.barh(pos, feature_importances[sorted_idx], align='center', height=0.8)
plt.yticks(pos, df_year_four.columns[sorted_idx])
plt.show()
Due to privacy let me say this: The feature names on the y-axis are overlapping (there are about 30 of them). I was looking into the documentation of matplotlib in order to get an understanding of how to do this by myself, unfortunately I couldn't find anything helpful. Seems like training and testing models is easier than understanding matplotlib and creating plots :D
Thank you so much for helping out and taking the time, I appreciate it.
I see your solution, and I want to just add this link here to explain why: How to change spacing between ticks in matplotlib?
The spacing between ticklabels is exclusively determined by the space between ticks on the axes. Therefore the only way to obtain more space between given ticklabels is to make the axes larger.
The question I linked shows that by making the graph large enough, your axis labels would naturally be spaced better.
You are using np.argsort that will return a numpy array with many indices. And you are using that array as labels for your Y-Axis thus there is overlapping of labels.
My suggestion will be to use an index for sorted_idx like,
plt.yticks(pos, df_year_four.columns[sorted_idx[0]])
This will plot only for 1 label.
Got it guys!
'Geistesblitz' as we say in germany! (spiritual lightening)
See the variable feature_importances in the third top row? Add feature_importnaces[:-15]
to view only the top half of the features and loosen up the y-axis. Yes!!! This does well because there are way less important features.

Gnuplot: how to mimic sketch graphs

I want to plot a figure like this one:
but with only sketched data curves. The x and y axes should not be sketched.
Is this possible using Gnuplot?
I think you may find this link useful, since it's exactly what you are asking for :)
http://rfonseca.github.io/xkcd-gnuplot/
Essentially, it applies a function to jiggle the line and make it pseudo-hand-drawn:
jiggle(x) = x*(1+(2*rand(0)-0.5)*0.015)
plot jiggle(sin(x))
And this is the result:
You may also want to increase samples with set samples 1000 to have better results avoiding spikes in jiggled lines.
(As a curiosity, that page is inspired by a StackExchange answer, that contains a very advanced (and amazing, IMHO) approach to this problem, unfortunately only for Mathematica users.)

How can I draw continuous curves in flot charts?

I'm trying to make a line chart in flot and I was wondering if it's possible to represent continuous lines. I mean curves such as y=ax^2+bx+c, or sin(x).
I already know that I can make a "for" sentence and draw the curve as a composure of short segments, but I would like to avoid this way.
Is it possible? How could I make it? Thnx guys!

How to draw Predicted Interval Plots (PIPS) using TeeChart

I want to compose a Predicted Interval Plots is it possible to draw the same using Tee Chart
I think is possible. I recommend you taking a look in the, Demo Examples of TeeChartFor.Net, concretely, see the example functions that you find in All Features\Functions.
Could you tell us if the TeeChartFor.Net Demo examples help you to find as you want?
I hope will helps.
Thanks,

Resources