How to create a log log plot - algorithm

I'm doing algorithm analysis and would like to create a log log plot in Excel/Google docs or anywhere that's good. I've tried in Excel but can't seem to get it to work, and can't seem to find help material for this anywhere, does anyone here know how to get this done?

Just in case you don't have access to a search engine...using excel...
Select your data
Insert it in a plot (for example a scatter plot)
Right click the plot axes and select 'Format Axis'
Check the Logarithm Scale tick box

Related

D3 Choropleth, get element with zoom/view

So I have a choropleth that is very similar to https://gist.github.com/mbostock/9656675. The only real difference is that I am display all the us counties, not states.
What I want to do display data related to what counties are in the view. This would be done outside of d3, I would display a more granular level related to those counties. So as they zoom in further to the map, the dataset would update and only display data related to the counties zoomed in on. This is easy to do with the click on a single county, however I am unsure of how to do it for the manual zoom and are viewing a lot of counties.
As I see it there are two ways that I could accomplish this:
1) Somehow via d3.selectAll I am able to grab only elements(counties) that are in the current view, however with my current searching I am unsure of how to do this.
2) Some how I pull from the svg transformation and projection the latitude and longitude bounds of the current zoom, and then use that lat/long to filter my data.
Anyone provide any insight on this or point me in the right direction? I did some digging however wasn't really able to come up with anything useful?
I am using d3v3.
Thanks.
So as often happens, I can search for stuff forever and not find answers. But the moment I post a stack overflow question I then find the answer myself not soon after.
This example gives me an example of what I need.
https://bl.ocks.org/iamkevinv/5af87b4e8ace557cb4b10bbfe7f7dab4

How can I add an icon in a label?

I have 2 questions need your help.
I would like to add a button on each plot to be a setting button. I use label with event listener and it works well ( as shown in attached file). However, my client asked me to change from normal text to graphic icon? How should I proceed?
As you can see from the attached image, the third plot is macd series. The value rage is from -3e-8 to 3e-8 (by my observation). I manually set the maximum and minimum, and it get incorrect scale as shown.
How should I set the maximum and minimum for yScale?
I don't know how to get maximum and minimum value from a series. Can you suggest me?
A1 – Unfortunately, the current version of AnyChart doesn't provide an opportunity to add custom-made buttons inside the chart. But you can use a trick and use stage based layout. It means that the container includes a stage. The stage includes the stock chart all other elements by layers. Using this approach you can place an image (icon) upon the plot and set a listener just as for the 'settings' label.
For details, please, check the sample in the comment below.
A2 - We are planning to fix this behavior in 8.4.2 update (approximately by the end of November 2018).
I will notify you when the fix becomes available.
As a temporary workaround, you can get min /max value from your MACD indicator. For details, please, check the sample in the comment below.
You can apply min/max to the yScale of plot #0 like this:
chart.plot(0).yScale().minimum(minValue);
chart.plot(0).yScale().maximum(maxValue);
We are glad to inform you that we have released 8.4.2 update which brings many fixes and improvements. This update also includes a fix on the issue you reported. Now calculation of min/max of Y-scale works properly with small values. Update your binaries to get the fix.

Scilab 3d Plot Datatips

I am plotting some data in Scilab as 3d-Scatter plot (Scilab 6).
With the datatip toggle it is able to show some information about each data point: x,y,z value.
I am actually plotting node-values, x,y are the coordinates, z is the damage.
Is it possible to change the output of the datatip? I would like to display a node-label instead of the coordinates using the datatip-function!
Thank you!
Use datatipSetDisplay (cf. examples in help page)
You can set a custom diplay function per "PolyLine" object in your plot, e.g.
t=0:0.1:10;y=sin(t);
function s=mydatatip(h),s="DATATIP",end
plot(t,y)
datatipSetDisplay(gca().children(1).children(1),mydatatip)
Please note, here gca().children(1).children(1) is a handle to the "PolyLine" object of the plot.

Error in loading data using Dimple.js

I am trying to draw simple scatter plot using dimple.js. It works if my dataset is small . But if i take large dataset of index 15000 then it will not works, How can i fix this problem?
The browser can handle 2k or so records when creating dimple charts, any more and the browser will crash (too complex). Aggregate your data offline or use something like http://dimplecharts.com which has an online pivot table tool that could potentially group and sum values. That tool creates a file. Then select a scatter plot layout in dimplecharts and then the shuffle button to load your pivot result into the chart, it does this automatically via the shuffle button.

multiple x values spotfire

I am currently trying to adapt an excel dashboard I created a few years back into spotfire. The data previously fit onto one page, but this year the number of metrics has doubled and I thought it would be a good opportunity to try spotfire.
The current dashboard has a number of scatter plot charts showing the values from a range of cells (rank 1-5). Overlaid is another scatter plot that shows the groups results.
I have found it easy enough to run the scatter plot in Excel based on a range of data, but as of right now I am stumped on how to choose a range of values for my spotfire scatters.
Here is an example (in excel) of what I am trying to accomplish. The data example is how my data is currently setup.
Would you have any tips on how I may be able to produce a similar chart in Spotfire?
You can create a Document.Properties with all the values you want. Then create a slider in a text area with this document properties. You will be able to select a range of values with this slider.
To use your range in a scatter plot, on the axis you want, right click and custom expression then write something like $(my_docproperty).
Hope it will a solution to your problem !

Resources