DataGraph Community
  • Articles
  • Forums
  • News
  • Home

Community Forums

Forums/Technical Support/Support Desk/Custom function

Custom function

  • 1 month, 2 weeks ago donal botkin
    Participant

    Is it possible to create a custom function for use in f(x) column operations? To show changes as PPM, I use:

    ((Reading(#+1)/Reading)-1)*1000000

    It would be nice to do something like Reading.ppm to get the same result. I have tried the delta function, however it drops the first row rather than the last and has slightly different results, probably due to rounding in the calculations.

     

    1 month, 2 weeks ago dgteam
    Moderator

    Currently, we do not have custom functions or column properties.

    If we add something like this, one detail to think about is what happens when you define a set of custom functions and you send a DataGraph file to someone else that also has defined a set of custom functions – what to do if the defined function for .ppm is not the same?

    We think the solution is that the defined function/property is connected to a file. So rather than a list of functions that you create and chose from every time you open a new file, you have to define the functions it in every file.  With this approach, you can set up a template file that has all of your relevant functions to use as a starting point for a particular analysis.

    Any thoughts on if this would be helpful?

     

    1 month, 1 week ago donal botkin
    Participant

    Way back in the time when custom fonts were the hot item, not have the font in the document file was troublesome to say the least. So yes, keep the function with the file. It is easy enough to copy the f(x) from one file to another. Having the f(x) formula compiled as a function would be marginally better.

    Some text editors provide macro capability to expand an abbreviation into a sentence or entire paragraph in the final document. Does DataGraph have this?

    I’m still learning–‘tokens’ look useful–perhaps something like that would work. Meanwhile, copy and paste does the job better than retyping, so I’m OK with that.

    1 month, 1 week ago dgteam
    Moderator

    DataGraph does not have a macro capability like you described.  Maybe the closest would be creating a Text variable .  Then you can include that in any text field (e.g., titles and labels) as a token.

    1 month, 1 week ago donal botkin
    Participant

    So just to be clear, where are Text Variables stored? Are they Global by definition? If I can create a ‘special text’ that I can tokenize on a series of plots, my problem is solved.

    Thanks

    1 month, 1 week ago dgteam
    Moderator

    Yes, the Text variables are Global (listed in the bottom left corner) and can be used across multiple plots as a token.  They can also be used in masks.

    Here is an example where the variable serves both purposes (token and mask).

    TextVariable

    Change the text variable, and the data and title are updated.

    TextVariable2

     

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log In

Search Forums

Recent Topics

  • Scaling multiple columns from 0 to 1 at once by thomas pauly
    1 day, 2 hours ago
  • Webinar Tomorrow: Data Comparisons by dgteam
    6 days, 3 hours ago
  • Graphing expressions with local variables by warrennn
    6 days, 8 hours ago
  • Removing tic mark numbers by warrennn
    1 week ago
  • Variable attached to plots by kourosh kalayeh
    6 days, 21 hours ago
  • Like us on Facebook
  • Connect @datagraphapp
  • Subscribe to YouTube

Our Software

  • DataGraph
  • DataTank
  • ImageTank – New!
  • Create your account
Log In
© Visual Data Tools, Inc.  •  Privacy