Create horizontal lines on a graph

I'm looking to create horizontal lines on my paintings of waveform. I know that I can't use the cursors on a chart, but I want to find a way to draw lines on the y-axis of a graph (chart) of a control on my front. The reason is: I am in a position a sinusoidal signal that changes in amplitude due to the deformation of a material. I need to adjust the length of these horizontal lines using as reference.

I understand that I could use the limits of the curve because of it, but then I wouldn't be able to tell how long out of bounds, I. I am a super novice to Labview and you guys have been such a great help with all my endeavorsso far. Any suggestions?

Draw several lines in the table, where two of the parcels are borders. I don't remember the exact requirements, but you can probably do it by grouping the values or the construction of a table. Check the contextual help and the examples in the table.

Tags: NI Software

Similar Questions

  • horizontal line on waveform graph

    Hello world!

    I'm still new to Labview, but I am trying to add a horizontal line to a already established "histogram" on my graph of the waveform. How this code works is that it takes a force of a forceplate (this force Exchange) and trace it as a bar to the left of the graph target (it's their strength of target - height represents the amount of force they wish to exercise). Ideally, you would like these bars have the same height (the person exerting the force uses the same amount as their target). To make it a little easier for them to see the target height, I'm wanting to draw a horizontal line at the height of the target, but keep the bar chart so that they can see how far their strength exercised power comes from their target they grow stronger or softer. Is there an easy way to do this? Ideally I'd like the bar chart and line, but if there must be two lines (one for the target does not move and one for the force that would change) which is very good also.

    Thank you for your advice and your entries!

    Emily

    Dear emmaline35,

    you use a waveform graph, not a graphic. Graphic does not markers (which would be the most simple solution to mark the extreme).

    There is a suggestion that I have not tried: http://lavag.org/topic/11199-adding-a-reference-line-to-a-waveform-chart/?p=67119 (some solitions partially work are suggested earlier in the thread, too)

    Suggestion 2) If you need this marker (horizontal) and if your application is not computationally intensive (which does not seem so), I would use a chart and add a horizontal guide. That can be set programmatically: property node > XScale > [MarkerValues] but you will have to replot the graph for each newly received value.

    See you soon,.

  • Brush/Pencil/Eraser tool will only create horizontal lines on Cintiq 12wx?

    I use Flash CS3 on a Macbook really over a year old and just move to a PC this last week. Because I can't crossgrade my license of CS3, I downloaded the trial version of CC Flash to use between now and when my school will give me the full license next month. Last night, things were working very well except for a problem with the audio, do not sync to the top when I tried to play my animated film. When I open Flash again this morning, I couldn't even shoot. Whenever I try to use the Eraser brush, or record the Pencil tools, all the Flash are horizontal lines, like this:garbage.PNG

    After slightly more than looks, I discovered that this does not occur when I use my mouse, but only when I use the stylus on my Cintiq 12wx (my computer is a Lenovo from Y70 Touch Windows 8, if it's useful). I'm trying to figure out what I could do or what setting I could possibly changed between yesterday evening and this morning could have caused this, but I am at a loss. I have the latest version of Flash and the latest versions of Wacom Legacy drivers. Because I'm so new to this version and the windows as a whole, I am quite confused and frustrated by this whole situation. The solution is probably needed, but any advice would be wonderful. Thank you.

    Yep, reinstall the drivers Wacom worked. Thanks a ton.

  • How to create a horizontal line in the region of html

    Hello

    How can I create the html elements, including a horizontal line in an html area filled with items. I want to use this horizontal line to part elements optically. Moreover, my solution for now is to group the elements belonging together in a separate html area. So I have now 3 parts of html, each filled with 5 columns of elements. Is it possible to align the elements in the 3 regions (together)? Cause at the present time, only the items in each region are aligned.

    I use oracle 11 g 2 with apex 4.1

    wucis wrote:

    Apex version is 4.1

    Theme: Sapphire 17

    Page: Two level Tabs - right Sidebar (optional / based on a table)

    The region is HTML

    Main question is, how to create a horizontal line as visible separator between items.

    My personal preference would be to group the items according to the needs in the subregions and use CSS to display the Visual borders and uniform spacing of control over formatting tables.

    If however you want using HTML single region, is to create elements of the only view to the agenda of the positions of the sequence in the region where you want the jumps to appear, with the following parameters:

    Name: PX_HR_1 / / substitute suffix number and an increment of page as required

    Display in the form: Display only

    Save Session State: NO.

    Start on a new line: Yes

    Start the new field: Yes

    ColSpan: number of columns in your layout

    Label: leave blank

    Horizontal/Vertical alignment: Above

    Model: --choose a model--

    Type of source: Static assignment

    Source of value or expression:

  • How can I create a horizontal line on a line of text?

    Hello

    I have FM 12.0.3.424.

    Does anyone know how to create a horizontal line under the title text that matches the width of the page?  Similar to creating a border, but without the top and sides.

    Is it still possible?

    Thank you in advance!

    Use the downstairs 'Frame' attribute on the Advanced tab of the designer for your title of paragraph tag to use a framework named since your reference page. If you use the default templates for your documents, you might try the selection of single line (or create your own).

  • Get rid of BarChart legend and create a horizontal line to a specific value

    Hey,.
    I work with barregraphes.
    1st screen: I want to disable the legend of my Barchart.
    http://imgur.com/wMo6Tfv, DRiNA9C
    Second screen: I want to create a line in my Barchart on a specific value 700 as seen on the screen.
    http://imgur.com/wMo6Tfv, DRiNA9C #1
    Is this Possible? Also: what object to set the ID to change the color bar. I tried

    Chart histogram;
    barchart.setId ("Chart");

    CSS:
    #barchart
    {
    -fx-background-color: red;
    }
    But it did not work. Thank you!

    No, you do not miss anything. I had a temporary brain freeze. You can add nodes directly to an arbitrary region.

    If this makes it a little harder. You need to add the line to the container in which your chart is maintained, and of course this means that you understand the coordinates of the line relative to this container. To simplify a bit, axis has a scale property of conversion of units of the axis to display units, and also according to the docs of css, the table has a child with the css class "table-horizontal-zero line." So one possible strategy is to enter this line and figure the change in the coordinates needed him. There is still work to do to find the correct coordinates relative to the container, and if you want it to run with things move (for example, when the user resizes the window), you need to do a lot of link.

    This seems to work:

    import java.util.Arrays;
    import java.util.List;
    
    import javafx.application.Application;
    import javafx.beans.binding.DoubleBinding;
    import javafx.beans.property.DoubleProperty;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.Region;
    import javafx.scene.shape.Line;
    import javafx.stage.Stage;
    import javafx.util.StringConverter;
    
    public class LineChartSample extends Application {
    
      @Override
      public void start(Stage stage) {
        stage.setTitle("Line Chart Sample");
        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setTickLabelFormatter(new StringConverter() {
    
          @Override
          public Number fromString(String string) {
            return Double.parseDouble(string);
          }
    
          @Override
          public String toString(Number value) {
            return String.format("%2.2f", value);
          }
    
        });
        xAxis.setLabel("Month");
    
        final LineChart lineChart = new LineChart(
            xAxis, yAxis);
    
        lineChart.setTitle("Stock Monitoring, 2010");
        lineChart.setAnimated(false);
    
        final XYChart.Series series = new XYChart.Series<>();
        series.setName("My portfolio");
    
        final List> data = Arrays.asList(
    
        new XYChart.Data("Jan", 23),
            new XYChart.Data("Feb", 14),
            new XYChart.Data("Mar", 15),
            new XYChart.Data("Apr", 24),
            new XYChart.Data("May", 34),
            new XYChart.Data("Jun", 36),
            new XYChart.Data("Jul", 22),
            new XYChart.Data("Aug", 45),
            new XYChart.Data("Sep", 43),
            new XYChart.Data("Oct", 17),
            new XYChart.Data("Nov", 29),
            new XYChart.Data("Dec", 25));
    
        series.getData().addAll(data);
    
        final AnchorPane chartContainer = new AnchorPane();
        AnchorPane.setTopAnchor(lineChart, 0.0);
        AnchorPane.setBottomAnchor(lineChart, 0.0);
        AnchorPane.setLeftAnchor(lineChart, 0.0);
        AnchorPane.setRightAnchor(lineChart, 0.0);
        chartContainer.getChildren().add(lineChart);
    
        Button button = new Button("Show line");
        button.setOnAction(new EventHandler() {
    
          @Override
          public void handle(ActionEvent event) {
    
            final double lineLevel = 35;
    
            final Region chartRegion = (Region) lineChart
                .lookup(".chart-plot-background");
    
            final Line zeroLine = (Line) lineChart
                .lookup(".chart-horizontal-zero-line");
    
            final DoubleProperty startX = new SimpleDoubleProperty(0);
            final DoubleProperty endX = new SimpleDoubleProperty(0);
            final DoubleProperty y = new SimpleDoubleProperty(0);
    
            startX.bind(new DoubleBinding() {
              {
                super.bind(chartRegion.boundsInParentProperty());
              }
    
              @Override
              protected double computeValue() {
                double x = chartRegion.getBoundsInParent().getMinX();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  x += n.getBoundsInParent().getMinX();
                }
                return x;
              }
            });
    
            endX.bind(new DoubleBinding() {
              {
                super.bind(chartRegion.boundsInParentProperty());
              }
    
              @Override
              protected double computeValue() {
                double x = chartRegion.getBoundsInParent().getMaxX();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  x += n.getBoundsInParent().getMinX();
                }
                return x;
              }
            });
    
            y.bind(new DoubleBinding() {
              {
                super.bind(chartRegion.boundsInParentProperty(),
                    yAxis.scaleProperty(), zeroLine.startYProperty());
              }
    
              @Override
              protected double computeValue() {
                double y = zeroLine.getStartY() + lineLevel * yAxis.getScale();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  y += n.getBoundsInParent().getMinY();
                }
                return y;
              }
            });
    
            Line line = new Line();
            line.startXProperty().bind(startX);
            line.endXProperty().bind(endX);
            line.startYProperty().bind(y);
            line.endYProperty().bind(y);
    
            chartContainer.getChildren().add(line);
          }
    
        });
    
        BorderPane root = new BorderPane();
        root.setCenter(chartContainer);
        root.setTop(button);
    
        Scene scene = new Scene(root, 800, 600);
        lineChart.getData().add(series);
    
        stage.setScene(scene);
        stage.show();
    
      }
    
      public static void main(String[] args) {
        launch(args);
      }
    }
    
  • Always get horizontal lines on video during export to 720 x 480 AVI with "Deinterlace" turned on

    Professional Hello again fine,

    I use 6 first on a Windows 7 computer.

    I always get horizontal lines in my video during export to AVI 720 x 480, even with "Deinterlace" lit.

    I had a doubt on another thread and said robodog2 that it is interlaced with the lines of the file are not displayed when you use a selection of progressive export file...

    http://forums.Adobe.com/thread/852077

    So I found the box "Deinterlace" via "chronology of export > movie > settings > special treatment > Modify > deinterlace ', but if I have this box checked, I still have horizontal lines.

    Here are the screenshots of the same base video before importing them in at first for an effect reverse, and after I saved the resulting file 720 x 480 AVI... the final file appears with the same horizontal lines if yes or no deinterlacing is checked.

    Lines are more visible when viewing the video in Windows Media Player they appear in these screenshots below... the lines have in fact characteristics of edge in the public eye.  The lines look like an old used TV sometimes when the antenna was not getting good reception.  Also, I am saving successfully the "chronology of export > movie" path with different codecs (this is no longer a file generated from the preview, I was talking about in the previous thread on this)... so I'm sure all the parameters with this version and I get this result with three different codecs, with and without the "Deinterlace" checked... I had the same experience over and over yesterday evening while he was also working with another file.

    No one knows what is the cause?... Please see the pictures below

    Thank you

    digiday

    AVI file of front of record in first -own original 720 x 480, 30 frames per second

    720x480avi_CLEAN.jpg

    After the backup in the first 6

    Horizontal lines showing in this first 6, 720 x 480, 30 fps AVI file

    PremiereEXPORTED720x480avi_horizontalLINES.jpg

    Hi David,

    Yes, I finally solve this problem, based on a chance observation on another forum.  On another forum a guy once mentioned the setting ' NONE FRAME ' in the 'Record Options' in the dialog "Export movie" when I export my movie to an AVI file, as seen in my screen shot below.  Otherwise, I think that setting was failing to "FIRST FRAME ABOVE".

    For the most part, I was getting these terrible horizontal lines when I exported the graphic effects that I created with imported Photoshop layers in my film projects... in these kinds of exports that horizontal lines were much worse and more obvious that if I was just export a project with the actual video that I had imported in my project.

    But still, even with the imported video, as examples of images that I posted on this thread, even in this case I saw the horizontal lines.

    So one guy on another forum said something about "ANY FRAME" setting in my export dialog box.  It relates to something else about deinterlacing it is better for this problem as the "FIRST FRAME SUPERIOR" or "FIRST FRAME BELOW" settings.

    As can be seen in my screenshot below, which is the setting I talk, but I was using the old 6 first of 1999all about, and options in the new versions of first export dialog are different.  The guy on the other forum that mentions that setting, that eventually solved my problem, said that the adjustment did not differ in a newer version of first he used, but I found this setting in my dialog "Export movie" , and that solved the problem.

    It was so simple and I went by so many things to try to solve it, including my files running through other apps to try to pre empt the problem and none of it worked... He just turns out to be THAT simple adjustment "ANY FIELD" and that solved the whole problem.

    First 6 and some newer versions of first, seem to have other problems, such as the creation of an oblong shape, rotation image from a round graph-shaped eggs after importation and applying an effect of rotation, but otherwise, once I realized that the solution of horizontal lines, I did pretty well understand many things in this former first and I got pretty good results.

    Viel Glück!

  • HP 15 laptop: flickering horizontal line at the top of the screen

    Hi, I bought this laptop 10 months ago and its been great until about a month ago. A month ago the hard drive doesn't work faster (Super slow r/w) and is noisy. 2 days ago a horizontal line at the top of the screen started flashing when I started the PC. Then I rebooted a few times and nothing. I finally found it flashes only when the pc is unplugged. I loaded 100% and it continues to blink. Update my display drivers did not help either.

    Video: https://www.youtube.com/watch?v=7zJioGvs2Bg

    In the video you can see lines flicker. When he started there was only one, but it has gradually increased to 4 sound at this time. Also, the line crosses the screen completely but is no longer visible to these 4 points.

    Hi @HelpMeFixPC,

    Yes for sure. Just please use the following link to create yourself a file number, then the call and it can help to speed up the process of appeal:

    Step 1. Open the link: www.hp.com/contacthp/
    Step 2. Enter the product number or select Auto detection
    Step 3. Scroll up to "still need help? Fill out the form to select your contact options.
    Step 4. Scroll down and click on: contact HP options - click Get phone number

    File number and phone number are displayed.

    They will be happy to help you immediately.

    By clicking on the Thumbs Up below, you can say thank you!

    Thank you.

  • Problem Super complicated with rendering (horizontal lines occur in my final output)

    So my problem is sort of double.

    1. I create some graphics kinetic typography in AE CS6 for a customer, and when I go the Compositions of the hand, my output file is stretched.  I can't understand why this is happening.  The parameters of my computer are 1920 x 1080 D1/DV NTSC widescreen (1.21), 29.97 Drop Frame (although I changed these settings to try to solve this problem and, "no dice").  Don't forget that I have other comps in main compositions which have completely different parameters.  Some of them are calibrated at 4000 x 4000.

    I rendered out as a QuickTime codec 'Animation' 1920 x 1080 (although I changed these settings several times also in an attempt to solve the problem and still "no dice") the output video is always extended.  When I format the output for H.264, I get a caveat which reads the incompatibility of settings.

    I found a solution, however.  I drag the media encoder and output format as QuickTime ProRes 422 (or that, is not serious, still get the same problem), deinterlaced, 1920, 29.97, field order: first superior, appearance D1/DV NTSC widescreen 16:9 (2.2121).  Stretching issue fixes, but now I have these horizontal line that occur during the time when there is movement.  I have set all the parameters I mentioned several times and I can't understand why he did this.


    Can anyone help with this problem.

    Notice that your comp says always personalized. This means that you have changed something. You should always use the presets.

    The size of the image does not change because EI is pixel based. In the Composition Panel, if you enable view correcting the format of pixels so you would see the form of the change of model window. For example, when you view a DV (standard non square pixels) in perfect circles of Viewer Comp are oval until you put on pixel aspect ration correction in the Viewer. The number of pixels remains the same. Non square pixels were designed as a way to get digital data on digital broadcasting at a rate reduced data so that digital television would work. For example, a standard TV has a 4:3 and 486 scan image report lines. with the information of the visible image. The standard DV is 720 X 480 pixels. They cut the first 2 and down 4 scan lines because they were in the region of overscan and not visible to most of the viewers for broadcasters filled with missing persons aligns black because it is easy to compress, and then they did the format of the pixels, which is the conversion of a digital bit of information in time for an analogue electron beam moving on the screen at a fixed rate would put 720 of them on a line scan keep the image distorted and circles still circles. Make sense? At the time, it's all digital cameras faster and digital video might work. Now he's okay and nothing is broadcast in the United States in non square pixels. Only still DVD rely on pixels not square to the video of the reading. Same reason is as much information as you could successfully and reliably remove a DVD at the same time the standard was written.

    There is absolutely no reason to never work except non square pixels so absolutely, you know exactly what you do and why you do it. AE and all other NLE will automatically adjust images of non square pixels fit in a project of pixels square without distortion.

    Probably more than you wanted to know, but now you do. The reason for which only conceivable that someone would never made it or implement a master comp with non square pixels would be they should send the rendering in a digital format that accepts only non square pixels. IOW, if you have an old camera DV DV cassette and a way to digitize that digitally (which has not been manufactured for about 8 or 10 years) and you absolutely have to create a digital format DV master so that you can transfer this basic to the DV tape form digitally (no record) so that you have a digital copy of the video recorded on a format that only people with antiquated equipment can read using only that material so that you do not want to use the DV project (any format of X 720 in the menu drop down) from the beginning in Finnish. In my humble OPINION, all of these formats should be average at the bottom of the list so that a note should be that it is not deprecated square formats to use with caution.

  • The extension of the horizontal line on subpane (s)?

    This code draws two lines of XYChart in a Voletfractionne and draw a horizontal line only in the upper pane.

    I wish I had this horizontal line also in lower subpane (s) when the mouse pointer is moved to the lower pane.

    How to get there?

    Thank you

    Here is the code
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.geometry.Orientation;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.chart.*;
    import javafx.scene.control.SplitPane;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.LineBuilder;
    import javafx.stage.Stage;
    
    
    public class XyChartHorizontalLine extends Application {
    
    SplitPane               splitPane1 = null; 
    BorderPane              pane1; 
    BorderPane              pane2; 
    Line                    LH;
    XYChart.Series          series1 = new XYChart.Series(); 
    XYChart.Series          series2 = new XYChart.Series(); 
    
    @Override
    public void start(Stage stage) {      
    stage.setTitle("Lines plot"); 
    
    final NumberAxis xAxis = new NumberAxis(1, 12, 1); 
    final NumberAxis yAxis = new NumberAxis(0.53000, 0.53910, 0.0005); 
    
    xAxis.setAnimated(false);
    xAxis.setScaleX(0);
    yAxis.setAnimated(false);
    
    yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) { 
    
    @Override 
    public String toString(Number object) { 
        return String.format("%7.5f", object); 
    } 
    }); 
    
    final LineChart<Number, Number> lineChart1 = new LineChart<Number, Number>(xAxis,  yAxis); 
    
    lineChart1.setCreateSymbols(false); 
    lineChart1.setAlternativeRowFillVisible(false); 
    lineChart1.setAnimated(false); 
    lineChart1.setLegendVisible(false);
    
    series1.getData().add(new XYChart.Data(1, 0.53185)); 
    series1.getData().add(new XYChart.Data(2, 0.532235)); 
    series1.getData().add(new XYChart.Data(3, 0.53234)); 
    series1.getData().add(new XYChart.Data(4, 0.538765)); 
    series1.getData().add(new XYChart.Data(5, 0.53442)); 
    series1.getData().add(new XYChart.Data(6, 0.534658)); 
    series1.getData().add(new XYChart.Data(7, 0.53023)); 
    series1.getData().add(new XYChart.Data(8, 0.53001)); 
    series1.getData().add(new XYChart.Data(9, 0.53589)); 
    series1.getData().add(new XYChart.Data(10, 0.53476)); 
    series1.getData().add(new XYChart.Data(11, 0.530123)); 
    series1.getData().add(new XYChart.Data(12, 0.531035)); 
    
    lineChart1.getData().addAll(series1);         
    
    pane1 = new BorderPane(); 
    pane1.setCenter(lineChart1); 
    
    splitPane1 = new SplitPane();                                
    splitPane1.setOrientation(Orientation.VERTICAL);
    splitPane1.getItems().addAll(pane1);
    splitPane1.setDividerPosition(0, 1);
    
    final NumberAxis xAxis2 = new NumberAxis(1, 12, 1);
    final NumberAxis   yAxis2 = new NumberAxis();
    
    yAxis2.setTickUnit(1);
    yAxis2.setPrefWidth(35);
    yAxis2.setMinorTickCount(10);
    
    yAxis2.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis2){
        @Override
        public String toString(Number object){
            String label;
            label = String.format("%7.2f", object.floatValue());
            return label;
        }
    });
    
    LineChart<Number, Number>lineChart2 = new LineChart<Number, Number>(xAxis2, yAxis2);
    
    lineChart2.setAlternativeRowFillVisible(false);
    lineChart2.setLegendVisible(false);
    lineChart2.setAnimated(false);
    lineChart2.setCreateSymbols(false);
    
    //XYChart.Series series2 = new XYChart.Series();
    
    series2.getData().add(new XYChart.Data(1, 1));
    series2.getData().add(new XYChart.Data(2, 3));
    series2.getData().add(new XYChart.Data(3, 1.5));
    series2.getData().add(new XYChart.Data(4, 3));
    series2.getData().add(new XYChart.Data(5, 4.5));
    series2.getData().add(new XYChart.Data(6, 5));
    series2.getData().add(new XYChart.Data(7, 4));
    series2.getData().add(new XYChart.Data(8, 8));
    series2.getData().add(new XYChart.Data(9, 16.5));
    series2.getData().add(new XYChart.Data(10, 13.9));
    series2.getData().add(new XYChart.Data(11, 17));
    series2.getData().add(new XYChart.Data(12, 20));
    
    lineChart2.getData().addAll(series2);
    
    pane2 = new BorderPane(); 
    pane2.setCenter(lineChart2);
    
    Platform.runLater(new Runnable() {
     @Override
     public void run() {
         double percSplit;
    
         splitPane1.getItems().addAll(pane2);
    
        ObservableList<SplitPane.Divider> splitDiv =  splitPane1.getDividers();
    
        percSplit = 1/(double)(splitDiv.size()+1);
        for (int i = 0; i< splitDiv.size(); i++) {                        
            splitPane1.setDividerPosition(i, percSplit);
            percSplit += 1/(double)(splitDiv.size()+1);
            }
     }
     });
    
    Scene scene = new Scene(splitPane1, 800, 600); 
    stage.setScene(scene);         
    
    pane1.setOnMouseMoved(mouseHandler); 
    
    LH=LineBuilder.create()
        .startX(0)
        .startY(0)
        .endX(10)
        .endY(.535)
        .strokeWidth(1)
        .stroke(Color.BLACK)
        .build();
     pane1.getChildren().add(LH);
    
    stage.show();
    } 
    EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() { 
    
    @Override 
    public void handle(MouseEvent mouseEvent) {
    if (mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) { 
        LineChart<Number, Number> lineChart = (LineChart<Number, Number>)     pane1.getCenter(); 
    
        NumberAxis yAxis = (NumberAxis) lineChart.getYAxis(); 
        NumberAxis xAxis = (NumberAxis) lineChart.getXAxis(); 
    
        double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound(); 
    
        double xAxisShift = getSceneShift(xAxis);
        double yAxisShift = getSceneShift(yAxis);
    
        if(mouseEvent.getX()>xAxisShift && mouseEvent.getX()<xAxisShift+xAxis.getWidth()){
    
        LH.setStartX(xAxisShift);
        LH.setStartY(mouseEvent.getY());
        LH.setEndX(xAxisShift+xAxis.getWidth());
        LH.setEndY(mouseEvent.getY());
        }
    } 
    }
    }; 
    private static double getSceneShift(Node node) { 
    double shift = 0; 
    do {  
      shift += node.getLayoutX();  
      node = node.getParent(); 
    } 
    while (node != null); 
      return shift; 
    }   
    public static void main(String[] args) { 
    launch(args);  
    } 
    }
    Published by: 932518 on 27-whole-2012 5.14

    (1) when the cursor is moved from the lower pane above, I always drew senior bulkhead, is it possible to delete or hide? My goal is to not get as a line drawn to the position of the pointer

    Toggle the visible property for the lines:
    LH.setVisible (false);
    LH2.setVisible (true);

    (2) how do I modify your code in the case of the subcomponents more (> 2)?

    I think that you can implement the same logic as with 2 components:

    Here's the modified code:

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.geometry.Orientation;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.chart.*;
    import javafx.scene.control.SplitPane;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.LineBuilder;
    import javafx.stage.Stage;
    
    public class XyChartHorizontalLine extends Application {
    
        SplitPane splitPane1 = null;
        BorderPane pane1;
        BorderPane pane2;
        Line LH;
         Line LH2;
        XYChart.Series series1 = new XYChart.Series();
        XYChart.Series series2 = new XYChart.Series();
    
        @Override
        public void start(Stage stage) {
            stage.setTitle("Lines plot");
    
            final NumberAxis xAxis = new NumberAxis(1, 12, 1);
            final NumberAxis yAxis = new NumberAxis(0.53000, 0.53910, 0.0005);
    
            xAxis.setAnimated(false);
            xAxis.setScaleX(0);
            yAxis.setAnimated(false);
    
            yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
                @Override
                public String toString(Number object) {
                    return String.format("%7.5f", object);
                }
            });
    
            final LineChart lineChart1 = new LineChart(xAxis, yAxis);
    
            lineChart1.setCreateSymbols(false);
            lineChart1.setAlternativeRowFillVisible(false);
            lineChart1.setAnimated(false);
            lineChart1.setLegendVisible(false);
    
            series1.getData().add(new XYChart.Data(1, 0.53185));
            series1.getData().add(new XYChart.Data(2, 0.532235));
            series1.getData().add(new XYChart.Data(3, 0.53234));
            series1.getData().add(new XYChart.Data(4, 0.538765));
            series1.getData().add(new XYChart.Data(5, 0.53442));
            series1.getData().add(new XYChart.Data(6, 0.534658));
            series1.getData().add(new XYChart.Data(7, 0.53023));
            series1.getData().add(new XYChart.Data(8, 0.53001));
            series1.getData().add(new XYChart.Data(9, 0.53589));
            series1.getData().add(new XYChart.Data(10, 0.53476));
            series1.getData().add(new XYChart.Data(11, 0.530123));
            series1.getData().add(new XYChart.Data(12, 0.531035));
    
            lineChart1.getData().addAll(series1);
    
            pane1 = new BorderPane();
            pane1.setCenter(lineChart1);
    
            splitPane1 = new SplitPane();
            splitPane1.setOrientation(Orientation.VERTICAL);
            splitPane1.getItems().addAll(pane1);
            splitPane1.setDividerPosition(0, 1);
    
            final NumberAxis xAxis2 = new NumberAxis(1, 12, 1);
            final NumberAxis yAxis2 = new NumberAxis();
    
            yAxis2.setTickUnit(1);
            yAxis2.setPrefWidth(35);
            yAxis2.setMinorTickCount(10);
    
            yAxis2.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis2) {
                @Override
                public String toString(Number object) {
                    String label;
                    label = String.format("%7.2f", object.floatValue());
                    return label;
                }
            });
    
            LineChart lineChart2 = new LineChart(xAxis2, yAxis2);
    
            lineChart2.setAlternativeRowFillVisible(false);
            lineChart2.setLegendVisible(false);
            lineChart2.setAnimated(false);
            lineChart2.setCreateSymbols(false);
    
    //XYChart.Series series2 = new XYChart.Series();
    
            series2.getData().add(new XYChart.Data(1, 1));
            series2.getData().add(new XYChart.Data(2, 3));
            series2.getData().add(new XYChart.Data(3, 1.5));
            series2.getData().add(new XYChart.Data(4, 3));
            series2.getData().add(new XYChart.Data(5, 4.5));
            series2.getData().add(new XYChart.Data(6, 5));
            series2.getData().add(new XYChart.Data(7, 4));
            series2.getData().add(new XYChart.Data(8, 8));
            series2.getData().add(new XYChart.Data(9, 16.5));
            series2.getData().add(new XYChart.Data(10, 13.9));
            series2.getData().add(new XYChart.Data(11, 17));
            series2.getData().add(new XYChart.Data(12, 20));
    
            lineChart2.getData().addAll(series2);
    
            pane2 = new BorderPane();
            pane2.setCenter(lineChart2);
    
            Platform.runLater(new Runnable() {
                @Override
                public void run() {
                    double percSplit;
    
                    splitPane1.getItems().addAll(pane2);
    
                    ObservableList splitDiv = splitPane1.getDividers();
    
                    percSplit = 1 / (double) (splitDiv.size() + 1);
                    for (int i = 0; i < splitDiv.size(); i++) {
                        splitPane1.setDividerPosition(i, percSplit);
                        percSplit += 1 / (double) (splitDiv.size() + 1);
                    }
                }
            });
    
            Scene scene = new Scene(splitPane1, 800, 600);
            stage.setScene(scene);
    
            pane1.setOnMouseMoved(mouseHandler);
    
            LH = LineBuilder.create()
                    .startX(0)
                    .startY(0)
                    .endX(10)
                    .endY(.535)
                    .strokeWidth(1)
                    .stroke(Color.BLACK)
                    .build();
            pane1.getChildren().add(LH);
    
            LH2=LineBuilder.create()
        .startX(300)
        .startY(300)
        .endX(310)
        .endY(300.535)
        .strokeWidth(1)
        .stroke(Color.BLACK)
        .build();
    
     pane2.getChildren().add(LH2);
      pane2.setOnMouseMoved(mouseHandler2);
    
            stage.show();
        }
        EventHandler mouseHandler = new EventHandler() {
            @Override
            public void handle(MouseEvent mouseEvent) {
    
                if (mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) {
    
                     LH.setVisible(true);
                     LH2.setVisible(false);
    
                    LineChart lineChart = (LineChart) pane1.getCenter();
    
                    NumberAxis yAxis = (NumberAxis) lineChart.getYAxis();
                    NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
    
                    double newXlower = xAxis.getLowerBound(), newXupper = xAxis.getUpperBound();
    
                    double xAxisShift = getSceneShift(xAxis);
                    double yAxisShift = getSceneShift(yAxis);
    
                    if (mouseEvent.getX() > xAxisShift && mouseEvent.getX() < xAxisShift + xAxis.getWidth()) {
    
                        LH.setStartX(xAxisShift);
                        LH.setStartY(mouseEvent.getY());
                        LH.setEndX(xAxisShift + xAxis.getWidth());
                        LH.setEndY(mouseEvent.getY());
                    }
                }
            }
        };
    
        EventHandler mouseHandler2 = new EventHandler() {
            @Override
            public void handle(MouseEvent mouseEvent) {
                if (mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) {
                     LH.setVisible(false);
                     LH2.setVisible(true);
                    LineChart lineChart = (LineChart) pane1.getCenter();
    
                    NumberAxis yAxis = (NumberAxis) lineChart.getYAxis();
                    NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
    
                    double newXlower = xAxis.getLowerBound(), newXupper = xAxis.getUpperBound();
    
                    double xAxisShift = getSceneShift(xAxis);
                    double yAxisShift = getSceneShift(yAxis);
    
                    if (mouseEvent.getX() > xAxisShift && mouseEvent.getX() < xAxisShift + xAxis.getWidth()) {
    
                        LH2.setStartX(xAxisShift);
                        LH2.setStartY(mouseEvent.getY());
                        LH2.setEndX(xAxisShift + xAxis.getWidth());
                        LH2.setEndY(mouseEvent.getY());
                    }
                }
            }
        };
    
        private static double getSceneShift(Node node) {
            double shift = 0;
            do {
                shift += node.getLayoutX();
                node = node.getParent();
            } while (node != null);
            return shift;
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    
  • Watermark 'text' appears as a horizontal line

    I am trying to create my first watermark for legal deposit of the images. Following the instructions of the elements every day (recommended on this forum), I got regarding the creation of a file, activation of the text tool and choosing my fonts (Bradley Hand). When I click on the file and you start typing, all I see is a straight horizontal line. Thanks in advance for your advice!

    You should use a high resolution image. Increase the font size. The drop down menu to end at 72, but you can enter a value manually. Try 100 or 150 to start.

  • Creating a line chart series multi with different data providers

    I have 3 providers of data of the same structure that is ArrayCollection of data collection and that you want to use to create a line chart multiseriate. I don't have just 1 dataProvider that can be used but 3 different data providers of the same structure I want to use each different series.

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    < mx:ColumnChart showDataTips = "true" >

    < mx:horizontalAxis >

    < mx:CategoryAxis

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    / >

    < / mx:horizontalAxis >

    < mx:series >

    < mx:LineSeries displayName = "OrangeSales" yField = "sale" xField = "month" dataProvider = "{orangeSales}" / >

    < mx:LineSeries displayName = "AppleSales" yField = "sale" xField = "month" dataProvider = "{appleSales}" / >

    < mx:LineSeries displayName = "BananaSales" yField = "sale" xField = "month" dataProvider = "{bananaSales}" / >

    < / mx:series >

    < / mx:ColumnChart >

    Help, please!

    Sorry for the confusion. In fact I do something wrong, such as using ColumnChart to display a line chart or something like that.

    Now, I realized that a multi series line graph can be built by the presence of a different data provider for each of the LineSeries object.

    If the code below would create a multi series line graph:

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    <>

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    />

  • InDesign - horizontal lines...

    Hello

    IM putting together a book study and the need to create a page of blank notes with horizontal lines across it for people to writer, any ideas on how to do this?

    One way would be to use a block of text with a paragraph style that includes a rule below, accompanied by a statement for each line you want. Another would be to use the line tool or the tool pen to make a stand-alone online, duplicate lines as many times as necessary, place lines top and bottom at the top and bottom of the page, select them and click one of the buttons spread to make them all the same distance from each. Remove or add lines and redistribute according to needs.

  • Helps the creation of a continuous horizontal line &lt; hr &gt;

    Well, this should be a real easy. Should be...

    Thus,.

    I'm trying to create a horizontal line in Dreamweaver.

    So I added < hr > - here's my code:

    < hr style = height: 1px; COLOR = "#A2CAE0" >

    Here's what it looks like on the page:

    http://www.rerdownloads.com/?page_id=2245

    The line that I did then is second, under the alphabet. The problem is that I want it to look as the other lines - really thin. BUT... I can't. I tried to copy the same code as the other lines without success. And I've tried about 30 different code combinations. AM very frustrated, I can't even do a simple thing like this on my own so I humbly request assistance here.

    It would make my day if someone could help me. Thank you

    Or, to get rid of the

  • Borders and the vertical and horizontal lines

    Hi guys,.

    I'm new to InDesign and I am trying to create the below, but I'm having difficulties.

    How can I create the border and vertical and horizontal lines as shown in the picture? I wan't to make a model of these so that I can easily modify the title and the text and keep the same formatting.

    Thank you!

    Screen shot 2011-05-16 at 18.19.34.png

    You must learn to have a little patience. Everyone here is a volunteer, and we all work day, too.

    Your outer rim could be either a stroke applied to a block of text in multiple columns, or it could be a separate framework used closely as a background. If you apply a line directly on the text block, you can add an insert to move the text of the line. Horizontal rules (that's the term for a straight line in page layout) look like they're probably paragraph nets (lines above or below a paragraph). These can be included as part of the paragraph styles applied to securities. Paragraph nets can be adjusted to the weight and position on the basis of either the first or the last line of paragraph (depending on whether the rule is above or below) and can run across the width of the column or just the width of the text, and to add dashes, positive or negative.

    There is no way to automate the vertical rules, at least not with ID right out of the box. You can add a few PlaceHolder rules between columns on your master page, but you will need to override and set them on the page of the document itself. Set benchmarks of rule between columns on the master page would help, especially in a situation where the rule needs to be broken to accommodate something like the floating image.

    You can see if the school library has some reference materials. A particularly good book for a beginner would be Visual Quickstart Guide of Sandee Cohen for InDesign.

Maybe you are looking for

  • How can I make Firefox 5 work with OS10

    I can't get Firefox 5 operate on my old Mac. Firefox 4 went very well. I get a big circle with a line thruogh it icon

  • Invalid SSL certificate

    My company uses Citrix Receiver to allow us to connect to the House to work. I installed the latest version of the plug of the receiver in and all have El Capitan, I don't go through safari but rather connect by Miss this step and launch citrix direc

  • Aumomatic deduction on iTunes Store

    I have started using iTunes in the new laptop computer. First, he asked me to verify account information and what verification it was performed automatically deducted 1.00 USD in my account. What are these costs? And how they can be repaid?

  • HP Pavilion dv6 notebook PC

    Enter the administrator password or power on password appears, my password does not work and then pops up a message that says 'off System [99476174]' it please help someone

  • Loading problems

    I recently moved... the internet service where I am is wireless. I can access any application except for happy aquarium on Facebook.  I asked several times for assistance through support on Happy Aquarium and quite tab they asked me to do it without