Forum Replies Created
-
You’re very close! The statement expression B == 250000 && C == 1 is correct. It returns a value of 1 when the expression is true. That means you have A(1) or A(0). A(1) returns the first row in column A and there are no zero indexes allowed, which is why you get a bad index.
Instead, try wrapping this in an if statement. It will return the first value when true and the second when false.
if(B==1 && C==1, A(#), nan)
The column variable ‘#’ is the way to refer to the row number. Here is an example:
You can also use:
if(B==1 && C==1, A, nan)
This does the same thing but you don’t have to explicitly show the row index.
There is no way to return an empty value using an expression, so instead you use ‘nan’ (not a number). Most of the drawing commands just ignore ‘nan’ values, so you can still graph columns that contain ‘nan’.
If you want to remove the nan values, you can do that with a Mask column. Or you can do the check in one step and use a Mask column to return A based on that column, as shown here.
in reply to: Multiple mask criteria on columns (or equivalent)When you click and drag to zoom into a graph, you can drag the edges of the white bar on the hover controls the change the range. This changes the Restrict in the Axis settings. It sounds like what your running into is the the beginning and end are hard to set to exact values.
You can type in the values you want to get the zoom region to exactly where you want.
Then if you wanted a small range you could set that up and click the center of the bar to pan through the data.
If you need more control, you could set up your own sliders and use variable names in the Restrict settings.
Here a slider is set up to pan through all the data where you control the range as well.
One issue here is that if you accidentially click and drag on the graph, you loose the connection to the varaibles. A solution is to set up the graph and then place in a graph group, so you’re not really working with it. Then include the image using a Graphic command in a different graph. One advantage is that you can include a second inset that shows the entire data set. You also can’t break the connection with the variables as these are like dynamic screen shots.
We created an example file that demonstrates, so you can see the x portion that is zoomed in based on the whole set of data.
You can find this file now when you open File >Online Examples. It is in the Layout section. You should be able to paste your own data over the columns in this file to test it out. Hope this helps and would appreciate any feedback!
in reply to: Panning toolFor Expression columns, you have to type in the name of the columns in the column object entry box. Here is a simpler example. The first expression is saying ‘First expression = numbers’, and just returns the same values. The second expression is a logical statement using mathematical operators to check when the values in the column are equal to 4. These logical statments return a “1” when true.
Expresssions may break if you move a column into different group or change the name. You also have to use a path name or a redirect column when the column you want to reference is not in the same location as where you are testing the criteria.
Hope that helps.
in reply to: Multiple mask criteria on columns (or equivalent)Hi Richard,
You are correct the Mask column can only do one criterion at a time.
Instead you can create expression that evaluate muliple logical criteria. For example, here is a column created to idenify where first is one and second is two. Then you could mask using the criteria column. If the columns you are comparing to are text columns, you can use the options in the text column object, to map to numbers.
Note rather than using a mask column, you can add muliptle criteria to masks in commands or command groups.
Do either of these approaches solve your issue?
in reply to: Multiple mask criteria on columns (or equivalent)Thanks for reporting this. We found an issue on the new OS that sounds like what you are experiencing. We have a version of DataGraph to fix this.
If you could download this version to test on your system that would be very helpful. We are very close to releasing a new version (5.1). Here is a link to download our latest version:
https://www.visualdatatools.com/DataGraph/DataGraphBeta2.dmg
Does this version show the same problem?
in reply to: Problem with decimal separator on MacOS in FranceWe have had users in the past with issues using One Drive Files on Demand. This feature was automatically turned on for one drive users at some point. If you can turn that off, that may solve the problem as it did for the Textpad user with a similar issue from the link David posted.
Do you have files on Demand turned on? I believe you can tell if files on demand is turned on by a small cloud icon next to your files. See this thread for more information: File Updated by Another Program
in reply to: turn off autosave?I don’t have access to the standard but, based on reviewing your file, it looks like you want to find the X values associated with a given Y value for each peak. Since there are multiple locations where the Y values cross the function, you must create a column that will isolate the data for each X value you want to find. Then when you interpolate you switch the X and Y data, using the Plot action column.
Please email us at help@visualdatatools.com and we can send you the file where we did this using your data.
in reply to: Try to proceed data basing on ASTM E 756 StandardThanks for reminding us 🙂
We continue to be very intersted in adding this to DataGraph. This is something we are going to be working on in the next couple of months.
in reply to: Can DG import a shapefile?Hi James,
You are correct that we did not have the Lambert W function, so we are working on adding it now. It will be in the next beta, likely out today or tomorrow.
In terms of using the inverse function, it sounds like sometimes it did work for you but not others? Perhaps changing your initial guess would help as the non-linear fitting works best when you have a good initial guess. In any case, we’ll let you know when we have the Lambert W function in the beta so you can try that out.
in reply to: Lambert W function (Omega or Product Logarithm)That is correct. The Beta has another number following the 5.0.
We are working right now on the release for version 5.1. Here is where you can download the Beta.