Graph of the line upward wave

I have a wave form field which has a range of the axis y from 0 to 127.  It is important that the plot goes from 0 to 127.  The problem is normally the device I am able 127 statements for most of the conditions.  I currently use a land line to the Base style but as lines go from the top of the list down.  Unfortunately there is no apparent way to get a line style to the top.

I have attached my plot.  As you can see, I want the lines to go from the top down.

Here is my code to set the style of the waveformPlot (linemode is true):

waveformPlot4.FillBase = XYPlotFillBase.YValue;
waveformPlot4.ToolTipsEnabled = true;
waveformPlot4.DefaultStart = lowerLimit;
waveformPlot4.DefaultIncrement = spacing;
waveformPlot4.YAxis = axis3;

waveformPlot4.PointStyle = PointStyle.Cross;
waveformPlot4.PointColor = Color.Yellow;

If (! lineMode)
{
waveformPlot4.FillMode = PlotFillMode.None;
waveformPlot4.LineColor = Color.Yellow;
}
on the other
{
waveformPlot4.FillMode = PlotFillMode.Lines;
waveformPlot4.LineColor = Color.Empty;
waveformPlot4.LineToBaseWidth = 1;
waveformPlot4.LineToBaseColor = Color.Yellow;
}

Hello-

You're almost there - missing just one line.  This should do it for you:

Tags: NI Software

Similar Questions

  • When you save an image in PS CS 6 and go into Lightroom 5. The original and the modified image are at the end of the line upward.

    I use a Mac, 5 Lightroom and Photoshop CS 6. I started having a problem with the line up in Lightroom 5 after saving an image in PS CS 6. For some reason when I save the edited image 6 CS form he takes the modified image and the original image and put the end of the line up in Lightroom. If I take the modified image and move it to the right of the original, it will put two of them in the line up where they should be. How can I fix it. I looked at the menu for a kind of framework with no luck.

    Change the sort order. View-> sort

  • Move the lines upwards or downwards in a table (report)

    Hi all

    How can we allow the end-user to move the lines in a table up or down (similar to what a developer can do in some of the Apex screen)? I want the end user to reorganize the lines by clicking on the button (s). I can do this by asking them to enter an order of display and then sort on the field. Is there an elegant way?

    Thank you
    Rose

    Rose,

    Is it not what you're looking for:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:100

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • U3415W, shows that the lines and flickering

    If I plug a DP cable on the screen, it shows nothing and goes into 'emod to save energy'. I have to restart my pc in "safe mode" to see the screen again.

    To remedy this, I tried CDM and this just made the screen start flickering and showing the lines upward, so I googled and someone in this forum said that if I disable the 1.2 DP (which is default) things would go smoothly.

    Ive tried with just the cable of CDM at the U3415W. Did not work.
    Ive tried with the CDM cable to the U3415W and the DP cables my U2713W and then I just get the U2713W to work.

    Ive attached a picture with 2 screens side by side, so you can see what I mean.

    What is my graphics card which cannot handle this?
    Ive attached my information from dxdiag on my display information.

    Help, please.

    ---------------
    Display devices
    ---------------
    Card name: AMD Radeon 200 R9 / HD 7900 Series
    Manufacturer: Advanced Micro Devices, Inc.
    Track type: processor AMD Radeon Graphics (0 x 6798)
    DAC type: DAC (400 MHz) internal
    The device key: Enum\PCI\VEN_1002 & DEV_6798 & SUBSYS_04441043 & REV_00
    Memory display: 2795 MB
    Dedicated memory: 3051 MB
    Shared memory: 3840 MB
    Current mode: 2560 x 1440 (32 bit) (60 Hz)
    Name of the monitor: generic PnP monitor
    Monitor model: DELL U2713HM
    Monitor ID: DEL4080
    Native mode: 2560 x 1440 (p) (59,951 Hz)
    Output type: external Displayport
    Driver name: aticfx64.dll, aticfx64.dll, aticfx64.dll, aticfx32, aticfx32, aticfx32, atiumd64.dll, atidxx64.dll, atidxx64.dll, atiumdag, atidxx32, atidxx32, atiumdva, atiumd6a.cap, atitmm64.dll
    The driver file version: 8.17.0010.1395 (English)
    Driver version: 15.200.1046.0
    DDI version: 11
    : Model WDDM 1.1 driver
    Driver attributes: Final retail
    Date of the driver/size: 23/06/2015 04:08:44, 1440592 bytes
    Would be WHQL logo: Yes
    Date stamp WHQL:
    The instrument identifier: {D7B71EE2-24D8-11CF-8076-4E24BEC2C535}
    Vendor ID: 0 x 1002
    Device ID: 0 x 6798
    SubSys ID: 0 x 04441043
    Revision ID: 0x0000
    Strong name of the driver: oem50.inf:ATI. Mfg.NTamd64.6.1:ati2mtag_R575:15.200.1046.0:pci\ven_1002&dev_6798
    The driver rating: 00E62001
    Video Accel: ModeMPEG2_A ModeMPEG2_C
    Deinterlace caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) (YV12, 0 x 32315659) = Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC1, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC2, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC3, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC4, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S340, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S342, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    D3d9 Overlay: Unsupported
    DXVA-HD: not supported
    DDraw status: enabled
    D3D status: enabled
    AGP status: enabled

    Card name: AMD Radeon 200 R9 / HD 7900 Series
    Manufacturer: Advanced Micro Devices, Inc.
    Track type: processor AMD Radeon Graphics (0 x 6798)
    DAC type: DAC (400 MHz) internal
    The device key: Enum\PCI\VEN_1002 & DEV_6798 & SUBSYS_04441043 & REV_00
    Memory display: 2795 MB
    Dedicated memory: 3051 MB
    Shared memory: 3840 MB
    Current mode: 3440 x 1440 (32 bit) (60 Hz)
    Name of the monitor: Dell U3415W (miniDisplayPort)
    Monitor model: DELL U3415W
    Monitor ID: DELA0A7
    Native mode: 3440 x 1440 (p) (59,973 Hz)
    Output type: external Displayport
    Driver name: aticfx64.dll, aticfx64.dll, aticfx64.dll, aticfx32, aticfx32, aticfx32, atiumd64.dll, atidxx64.dll, atidxx64.dll, atiumdag, atidxx32, atidxx32, atiumdva, atiumd6a.cap, atitmm64.dll
    The driver file version: 8.17.0010.1395 (English)
    Driver version: 15.200.1046.0
    DDI version: 11
    : Model WDDM 1.1 driver
    Driver attributes: Final retail
    Date of the driver/size: 23/06/2015 04:08:44, 1440592 bytes
    Would be WHQL logo: Yes
    Date stamp WHQL:
    The instrument identifier: {D7B71EE2-24D8-11CF-8076-4E24BEC2C535}
    Vendor ID: 0 x 1002
    Device ID: 0 x 6798
    SubSys ID: 0 x 04441043
    Revision ID: 0x0000
    Strong name of the driver: oem50.inf:ATI. Mfg.NTamd64.6.1:ati2mtag_R575:15.200.1046.0:pci\ven_1002&dev_6798
    The driver rating: 00E62001
    Video Accel: ModeMPEG2_A ModeMPEG2_C
    Deinterlace caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) (YV12, 0 x 32315659) = Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC1, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC2, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC3, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC4, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S340, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S342, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    D3d9 Overlay: Unsupported
    DXVA-HD: not supported
    DDraw status: enabled
    D3D status: enabled
    AGP status: enabled

    Good point about the button. Get it exchanged.

  • Moving lines upwards or downwards in a TXT field...

    I wonder if it is possible to move the lines upwards or downwards by clicking on it.

    I was testing this, but it does not work

    put

    members ()the mouseMember). line [la mouseLine] after members ("MyTXT")

    put

    members ()the mouseMember). line [la mouseLine] front members ("MyTXT")

    Please, if anyone has a script or know how this is possible, I'm really

    appreciate your help...

    Thank you

    -attach this behavior to a member of your domain (it must be a member of field Director, NOT a text member or a flash component)

    property spriteNum

    property sp, mem

    selectedLine property

    on beginSprite me

    SP = sprite (spriteNum)

    MEM = sp.member

    selectedLine = 0

    end

    on mouseDown me

    selectedLine = _mouse.mouseLine

    LN2 = selectedLine - 1

    If ln2 = 0 then

    LN2 = 1

    Poscar1 = 0

    on the other

    Poscar1 = mem.line [1.ln2] .length + 1

    end if

    Poscar2 = Poscar1 + mem.line [selectedLine] .length

    MEM. Selection = [Poscar1, Poscar2]

    end

    on moveSelectedLine me, val

    If selectedLine = 0 then exit

    selText = mem.line [selectedLine]

    lnCount = mem.line.count

    newline = max (1 min (lnCount, selectedLine + val))

    Salt = mem.selection

    selOffset = mem.line [newLine] .length + 1

    = dir (newline - selectedLine)

    Salt = salt + ([selOffset, selOffset] * dir)

    MEM. Line [selectedLine]. Delete()

    If newLine = lnCount then

    MEM. [NewLine] line = selText

    on the other

    MEM. [NewLine] line = selText & RETURN & mem.line [newLine]

    end if

    MEM. Selection = salt

    selectedLine = line break

    end

    -on your up/down arrows tie these behaviors of code:

    -for the up arrow button

    on mouseUp me

    sendAllSprites (#moveSelectedLine, - 1)

    end

    -for the down arrow button

    on mouseUp me

    sendAllSprites (#moveSelectedLine, 1)

    end

    Note: you will need to click on a row to select it first. I think that answers to everything that you arranged.

  • How to move the ends of the lines slanted towards the limits of the purge

    Hi all

    I developed a script that deletes the page elements to the purge. To achieve this, that I collect all the elements of the page (with the exception of text blocks) located partially on the editing table, create a temporary mask and 'trim' with subtraction of Pathfinder function. However, this approach does not work with graphic lines so I'm trying to move the ends of the lines to the limits of the substantive area lost. (I guess these are simple straight lines consisting of two end points).

    screengrab.png

    I knew how to deal with orthogonal lines - it's pretty easy:

    if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
         path = theItem.paths[0];
         if (path.pathPoints.length === 2) {
              ep = path.entirePath;
              w = ep[1][0]-ep[0][0];
              h = ep[1][1]-ep[0 ][1];
              
              if (w > h) {
                   newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                   path.entirePath = newEp;
              }
              else if (h > w) {
                   newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                   path.entirePath = newEp;
              }
         }
    }
    

    This moves A1 - A2, B1 , B2, C1 , C2, D1 to D2.

    But how to treat skewed lines? How to calculate the coordinates of the point E2 and F2? Y at - it a magic formula? Or can someone point me to the right direction: for example a book to read?

    I assume this has something to do with geometry/trigonometry, but I haven't studied this kind of things at school. (I graduated from an art school - designed to draw naked models instead).

    If someone will answer my question, please do it on basic level since I'm a total noob in the present.

    Here's the script:

    if (Number(String(app.version).split(".")[0]) == 7) ErrorExit("This script can't work with InDesign CS5 so far.", true);
    
    var doc = app.activeDocument;
    var spreadBounds, spreadWithBleedBounds, gPartiallyOutOfSpreadItems;
    var ungroupErrors = 0;
    
    var originalHorUnits =  doc.viewPreferences.horizontalMeasurementUnits;
    var originalVerUnits =  doc.viewPreferences.verticalMeasurementUnits;
    doc.viewPreferences.horizontalMeasurementUnits = doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.INCHES;
    doc.viewPreferences.rulerOrigin = RulerOrigin.spreadOrigin;
    doc.zeroPoint = [0, 0];
    
    if (doc.layers.itemByName("Temporary Layer") == null ) {
         var tempLayer = doc.layers.add({name:"Temporary Layer"});
    }
    else {
         var tempLayer = doc.layers.itemByName("Temporary Layer");
    }
    
    UngroupAllGroups(doc.groups);
    
    DeleteObjectsOnPasteboard();
    ProcessSpreads(doc.spreads);
    ProcessSpreads(doc.masterSpreads);
    
    tempLayer.remove();
    
    doc.viewPreferences.horizontalMeasurementUnits = originalHorUnits;
    doc.viewPreferences.verticalMeasurementUnits = originalVerUnits;
    
    var msg = (ungroupErrors > 0) ? " Failed to ungroup " + ungroupErrors + " groups since they are too large." : "";
    alert("Done." + msg, "Trim Pages Script");
    
    //================================== FUNCTONS ===========================================
    function ProcessSpreads(spreads) {
         var spread, path, ep, w, h;
         for (var s = 0; s < spreads.length; s++) {
              spread = spreads[s];
              spreadBounds = GetSpreadBound(spread, false);
              spreadWithBleedBounds = GetSpreadBound(spread, true);
              
              gPartiallyOutOfSpreadItems = GetPartiallyOutOfSpreadItems(spread);
              
              var theItem, theMask, newItem;
              for (var i = gPartiallyOutOfSpreadItems.length-1; i >= 0; i--) {
                   theItem = gPartiallyOutOfSpreadItems[i];
                   if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
                        path = theItem.paths[0];
                        if (path.pathPoints.length === 2) {
                             ep = path.entirePath;
                             w = ep[1][0]-ep[0][0];
                             h = ep[1][1]-ep[0 ][1];
                             
                             if (w > h) {
                                  newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                                  path.entirePath = newEp;
                             }
                             else if (h > w) {
                                  newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                                  path.entirePath = newEp;
                             }
                        }
                   }
                   else {
                        theMask = CreateMask(spread);
                        try {
                             newItem = theMask.subtractPath(theItem);
                        }
                        catch (err) {
                             $.writeln("2 - " + err);
                             theMask.remove();
                        }
                   }
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function IsPartiallyOutOfSpread(pageItem) {
         var result = false;
         if (pageItem.constructor.name == "TextFrame" ||
              pageItem.constructor.name == "Group" ||
              pageItem.parent.constructor.name == "Group")
         {
              return result;
         }
    
         var visBounds = pageItem.visibleBounds;
         if (visBounds[0] < spreadBounds[0] && visBounds[2] > spreadBounds[0] ||
              visBounds[1] < spreadBounds[1] && visBounds[3] > spreadBounds[1] ||
              visBounds[2] > spreadBounds[2] && visBounds[0] < spreadBounds[2] ||
              visBounds[3] > spreadBounds[3] && visBounds[1] < spreadBounds[3]  ) {
              result = true;
         }
         return result;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetSpreadBound(spread, bleed) { // including bleed -boolean
         if (bleed == undefined) bleed = false;
         
         with (doc.documentPreferences) {
              var topBleed = documentBleedTopOffset
              var leftBleed = documentBleedInsideOrLeftOffset;
              var bottomBleed = documentBleedBottomOffset;
              var rightBleed = documentBleedOutsideOrRightOffset;
         }
    
         var bFirst = spread.pages.item(0).bounds; // bounds of the first page
         var bLast = spread.pages.item(-1).bounds; // bounds of the last page
         return [     ((bleed) ? bFirst[0]-topBleed : bFirst[0]), 
                        ((bleed) ? bFirst[1]-leftBleed : bFirst[1]), 
                        ((bleed) ? bLast[2]+bottomBleed : bFirst[2]), 
                        ((bleed) ? bLast[3]+rightBleed : bLast[3])
                        ];
    }
    //--------------------------------------------------------------------------------------------------------------
    function CreateMask(spread) {
         var unitValue = new UnitValue (app.pasteboardPreferences.minimumSpaceAboveAndBelow, "mm");
         var unitValueAsInch = unitValue.as("in");
         var outerRectangleBounds = [spreadWithBleedBounds[0]-unitValueAsInch, 
                                                                spreadWithBleedBounds[1]-8.07, 
                                                                spreadWithBleedBounds[2]+unitValueAsInch, 
                                                                spreadWithBleedBounds[3]+8.07
                                                                ]; 
    
         var outerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:outerRectangleBounds});
         var innerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:spreadWithBleedBounds, fillColor:doc.swatches.item("Black"), fillTint:30});
         var mask = outerRectangle.excludeOverlapPath(innerRectangle);
         return mask;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetPartiallyOutOfSpreadItems(spread) {
         var allPageItems = spread.allPageItems;
         var partiallyOutOfSpreadItems = [];
         var currentItem;
         
         for (var i = 0; i < allPageItems.length; i++) {
              currentItem = allPageItems[i];
              if (IsPartiallyOutOfSpread(currentItem)) partiallyOutOfSpreadItems.push(currentItem);
         }
         
         return partiallyOutOfSpreadItems;
    }
    //--------------------------------------------------------------------------------------------------------------
    function DeleteObjectsOnPasteboard() {
         var objs = app.documents[0].pageItems.everyItem().getElements();
         while (obj=objs.pop()) {
              try {
                   if(obj.parent instanceof Spread || obj.parent instanceof MasterSpread){ obj.remove() }
              }
              catch(err) {
                   //$.writeln("2 - " + err);
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function ErrorExit(myMessage, myIcon) {
         alert(myMessage, "Trim Pages Script", myIcon);
         exit();
    }
    //--------------------------------------------------------------------------------------------------------------
    function UngroupAllGroups(groups) {
         for (var i = groups.length-1; i >= 0; i--) {
              var gr = groups[i];
              if (gr.groups.length > 0) {
                   var subGroups = [];
                   for (var j = gr.groups.length-1; j >= 0; j--) {
                        subGroups.push(gr.groups[j].id);
                   }                    
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              
                   for (var k = subGroups.length-1; k >= 0; k--) {
                        try {
                             doc.groups.itemByID(subGroups[k]).ungroup();
                        }
                        catch(err) {
                             //$.writeln("2 - " + err);
                             ungroupErrors++;
                        }
                   }
              }
              else {
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              }
         }     
    }
    //--------------------------------------------------------------------------------------------------------------

    Thanks in advance.

    Kasyan

    Hi Kasyan!

    I was not trying to integrate this into your script, so you may need to adjust a little. The trick is to define a function that detects the point of intersection of two lines - and, of course, you must call it for lines that will not fail to cross the border of the page! (Otherwise, it would simply expand * any * the line upward and on the border.)

    I think it would be wise to predict a small mistake for lines that seem to run "up to" the edge of the page - I tested a line for 'x '.<= 0"="" on="" a="" line="" that="" appeared="" to="" start="" on="" 0;="" the="" control="" panel="" told="" me="" so.="" however,="" i="" didn't="" type="" that="" 0="" in;="" i="" dragged="" the="" line="" to="" the="" edge.="" apparently,="" it="" was="" *not*="" at="" precisely="" "0mm",="" but="" something="" like="" "0.001mm",="" because="" the="" script="" simply="" didn't="" "see"="" the="">

    My function comes from this page: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/ and I did not test it does of orthogonal lines

    (but of course, you could add this in exceptional cases), and it's my script extending the line, with a small wrapper to configure things.

    The function tests * any * tail against * any * other line, so if we meet the page bounding box, I get the intersection with the purge of the side area where it crosses the bbox page.

    line = app.selection[0];
    // pg size in "regular" [y1,x1, y2,x2] format
    pagebbox = [0,0, app.activeDocument.documentPreferences.pageHeight,app.activeDocument.documentPreferences.pageWidth ];
    bleedDist = 5; //
    bleedbbox = [ pagebbox[0] - bleedDist, pagebbox[1] - bleedDist, pagebbox[2] + bleedDist, pagebbox[3] + bleedDist ];
    pt1 = line.paths[0].pathPoints[0].anchor;
    pt2 = line.paths[0].pathPoints.lastItem().anchor;
    // Start point:
    if (pt1[0] <= pagebbox[1] || pt1[0] >= pagebbox[3] ||
     pt1[1] <= pagebbox[0] || pt1[1] >= pagebbox[2])
    {
     if (pt1[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt1[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt1[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt1[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints[0].anchor = intersectPt;
    }
    // End point:
    if (pt2[0] <= pagebbox[1] || pt2[0] >= pagebbox[3] ||
     pt2[1] <= pagebbox[0] || pt2[1] >= pagebbox[2])
    {
     if (pt2[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt2[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt2[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt2[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints.lastItem().anchor = intersectPt;
    }
    
    function IntersectionPt (ln1, ln2)
    {
     var ua;
     var x1 = ln1[0][0], x2 = ln1[1][0], x3 = ln2[0][0], x4 = ln2[1][0];
     var y1 = ln1[0][1], y2 = ln1[1][1], y3 = ln2[0][1], y4 = ln2[1][1];
     ua = ((x4 - x3)*(y1 - y3) - (y4 - y3)*(x1 - x3))/((y4 - y3)*(x2 - x1) - (x4 - x3)*(y2 - y1));
    
     return [ x1 + ua*(x2-x1), y1 + ua*(y2-y1) ];
    }
    
  • Draw the new lines on the graph of the intensity

    I'm trying to attract the XY axes by an arbitrary point on a graph of intensity. I can draw two lines across the image (suite of messages like this link below), but they don't really seem FDNE to the top one the coordinates I spesify. I know that I have to correct the fact that the vertical scale increases from top to bottom, but how do I draw lines to the (x 0, y0) position I spesify? It seems that the lines are superimposed on the image, but not related to the axes of the actual intensity chart.

    http://forums.NI.com/T5/LabVIEW/overlaying-XY-line-onto-intensity-graph/TD-p/398963

    but you need made "vertical mirror".

  • draw the line in graph (picture) xy

    Hi all

    I place an image in xy graph that I allow to annotate some of the indicators.

    After I put the flag in a place in xy graph (picture) I want to draw lines between indicators.

    can someone help me with this? I'm using LABVIEW 8.2.1

    Sorry for my English.

    Take a look at my example of the past.

    Here; rapid s and diry draft amendment to your VI, see if it works for you. (the lines are drawn between annotations when you press OK).

  • draw lines on the graph of the intensity

    I want to draw lines on the graph of the intensity.

    I am already looking for some questions before.

    I know there is a vi could draw line on the graph of the intensity by dragging the mouse.

    But I need more precisely what set the length and the angle between the horzontal line.

    The setting is very ideal for me. But I don't know how to use it in the intensity chart.

    Is there anyone can help or give some advice?

    Your example is not so great because it uses 100% of CPU on a kernel at any time, do nothing.

    Here's a quick rewrite of my old example here. He draws an angle with the specified length and angle to where you click on the chart. This should help you get started. Modify if needed. (Also remember that trigonometry is much easier when using complex numbers )

  • See the line between cursors on a graph

    Hello

    I have a graph simple intensity with two sets of sliders on it, called 1 and 2 cursor cursor.  I would like to make a distinction between the sliders so that when the user moves a cursor can see a line superimposed on the graph.  Please see the attachment where 1 cursor is green and cursor 2 is purple.  I used Paint to draw the black line on the graph that I want to add.  Thank you!

    Steve

    Looks like you have a graph of intensity. Easier would be e to use the overlay "draw pictures.

    A simple example is shown here.

    Of course, in your situation, you get the coordinates of the cursor to set the line. For example, use an event 'move cursor' to recalculate.

  • can not find the line in the graph editor

    I put a few keyframes left the movement spuqre.  but I can't find the line in the graph Editor.   

    Please help me

    graph editor.jpg

    You must select a property to view the chart.

  • remove the nuances behind the lines of the bars in the graphs

    Hello, new here on the forum.
    I use obiee 11.

    Is there a way to remove the gray shades behind the lines of the graphic bars?
    The two curious to know if this is possible in a chart or make it standard for all graphs.

    Thank you!

    Hello

    You can do it. In the properties of the graph, we have graphics properties it in the section field box check the specify and leave that. That will remove the lines behind the graph.

    Thank you
    Subhash

  • Why my anchor will not stay where I put it? It keeps coming from upward or down the line that I want to connect.

    Can't seem to fix it. It is not a network problem, I tried. The anchor at the end of this line, I train with a box intersection refuses to line up evenly, despite the Illustrator tell my which anchor crosses the box. It seems me to zoom in and see that the anchor is always pushed more high or lower than the vertical line. No matter what I do the line refuses to cooperate. Even delete the file and try on a new file do not work.

    You line up on the pixel grid in the files in question? What version of Amnesty International and the operating system are you using? This new Document profile did you start from?

  • Increment the index number of the line

    Hello. I use the generation of reports and I wanted to insert data into a new line whenever the time loop is finished, but I don't know how to do it. I thought by increasing the number of lines, because what's happening, that's when the vi runs, it puts the new data in the cell of 1.0 and that made the first acquired data going to the last cell of the column, so that at the time that I traced it, the graph is back. Here in the photo you can see the vi shows how the correct graph is, and the excel chart shows it backwards. And that's because the line inserted is going 1.0. I need to go as 2.0... 3.0, 4.0 and so on. Any suggestions would be wonderful!

    Maybe it will be better!

  • Graph XY no lines, just Points?

    Hi all

    I want to build a graph of pressure relative to the temperature.  It must be a standard XY graph, but I just want to see the scatter point without lines connecting the points.  Is it possible to eliminate the lines between points (or make them invisible)?

    Thank you!

    You can do this in the properties of the graph. Right-click on the chart and select Properties. Go to the locations tab.  Select an icon for the point (something other than ) in the third column of icons. Then select the top of the list in the fourth column. It is the symbol with the track of the points, but no lines. This will give you what you want.

Maybe you are looking for

  • Stop coming google results after attempts to use the URL bar!

    I just installed the latest firefox and am angry. I used to be able to grasp things in the URL bar and firefox would direct me to the relevant Web site, no questions asked. I could type, for example, 'BBC world news' in the URL bar, and after knockin

  • clock stamp_pc

    I would like to ask if it is possible to add timestamp in each data row of the exact time of the PC clock in the form DAY/MONTH/YEAR; HH: mmS. Data that our sensor sends have no time with them and I would like to add timestamp to each folder, for exa

  • Shift registers 'for' loop can accomidate how

    Hello I would like to know how shift registers we can add in for or while loop. Thanks in advance, Krishna

  • Cannot find Write.vi AO

    When I opened the source code 8.0 LV in 2010 LV, LV is AO Write.vi.  I have loaded NOR-DAQ traditional 7.4.4 drivers but I see NEITHER-traditional DAQ in my palette measure IO.  Any ideas?  LV 2010 support NOR-traditional DAQ? Thanks in advance.

  • Kodak ESP5AIO printer ink cartridges ok but print very faintly

    Printer ink cartridges ok but feel very low, troubleshooting says everythings ok. Any ideas?