Hi,
I've attached a part of my application displaying a StackedTimePlot2D graphic. Here, the Y axis values are displaying within the graphic area. Is there any way to make them display at left part of the axis line, similar to the time values which are displaying below time axis line ?
This is how i create the plot as usual; frequencyPlot = plot.createTimePlot("FREQUENCY");
Additionaly, I attempt to make vertical lines visible by;
frequencyPlot.getGridPainter().setShowVerticalLines(true);
In some cases, vertical lines display at same point where the time ticks exist, but in some cases they just don't; as displayed in screenshot. Is there any way to fix this situation ?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Glimpse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to .
For more options, visit https://groups.google.com/d/optout.
CollapsibleTimePlot2D plot = new CollapsibleTimePlot2D( );
// the label size is used to offset the time axis at the bottom of the plot
// we need this value to line up with the width of the yAxisLayout we set below
int labelSize = 50;
plot.setShowLabels( true );
plot.setLabelSize( labelSize );
plot.setPlotSpacing( 10 );
// create a blank custom row in the timeline
// (just a GlimpseLayout with no event listeners or painters)
PlotInfo plot1 = plot.createPlot( "custom-plot-id-" + i, new Axis1D( ) );
// set plot to consume all available space
plot1.setSize( -1 );
// create a layout area to display the y axis
GlimpseAxisLayout1D yAxisLayout = new GlimpseAxisLayoutY( );
// create a painter to draw the y axis and add it to the yAxisLayout
GridAxisLabelHandler axisLabels = new GridAxisLabelHandler( );
axisLabels.setTickSpacing( 30 );
NumericYAxisPainter yAxisPainter = new NumericYAxisPainter( axisLabels );
yAxisLayout.addPainter( yAxisPainter );
// create a plotting area for the data
GlimpseAxisLayout2D plotLayout = new GlimpseAxisLayout2D( );
// pass events to the underlying layout (which has listeners allowing the timeline
// bounds to be adjusted)
plotLayout.setEventConsumer( false );
plot1.getBaseLayout( ).setEventConsumer( false );
// attach a listener allowing the y axis to be adjusted via the mouse
yAxisLayout.addGlimpseMouseAllListener( new AxisMouseListener1D( ) );
// add painters to the plotting area
plotLayout.addPainter( new BackgroundPainter( ) );
plotLayout.addPainter( new GridPainter( plot.getTimeAxisLabelHandler( ), axisLabels ).setShowMinorGrid( false ) );
plotLayout.addPainter( new BorderPainter( ) );
// add the layouts to the timeline row and position them with mig layout constraint strings
plot1.getBaseLayout( ).addLayout( yAxisLayout );
plot1.getBaseLayout( ).addLayout( plotLayout );
yAxisLayout.setLayoutData( String.format( "growy, pushy, width %d", labelSize ) );
plotLayout.setLayoutData( "grow, push" );
--
You received this message because you are subscribed to a topic in the Google Groups "Glimpse" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/metsci-glimpse/EeDEJONmhKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to metsci-glimps...@googlegroups.com.