Codota Logo
PlotPanel.<init>
Code IndexAdd Codota to your IDE (free)

How to use
edu.mines.jtk.mosaic.PlotPanel
constructor

Best Java code snippets using edu.mines.jtk.mosaic.PlotPanel.<init> (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: dhale/jtk

private static PlotPanel makePanel(Origin origin) {
 if (origin==Origin.LOWER_LEFT)
  return new PlotPanel(PlotPanel.Orientation.X1RIGHT_X2UP);
 else
  return new PlotPanel(PlotPanel.Orientation.X1DOWN_X2RIGHT);
}
origin: dhale/jtk

  array[i][j] = (float)(i+j)*(i-j);
PlotPanel panel1 = new PlotPanel();
PlotPanel panel2 = new PlotPanel();
JPanel topLeftPanel = new JPanel();
JPanel topRightPanel = new JPanel();
origin: dhale/jtk

PlotPanel plot = new PlotPanel(1,1);
origin: dhale/jtk

_plotPanelH = new PlotPanel();
_plotPanelH.setHLabel("sample index");
_plotPanelH.setVLabel("amplitude");
_plotPanelAP = new PlotPanel(2,1);
_plotPanelAP.setTitle("amplitude and phase response");
if (_db) {
origin: dhale/jtk

private PoleZeroPlot() {
 _plotPanel = new PlotPanel();
 _plotPanel.setTitle("poles and zeros");
 _plotPanel.setHLabel("real");
origin: dhale/jtk

public static void main(String args[]) {
 System.out.println("LogAxisPlotDemo2");
 int n = 1000;
 float X = 300;
 float[] x = ArrayMath.rampfloat(0.0f,X / n,n);
 float[] f = new float[n];
 for (int i = 0; i < n; ++i) {
  f[i] = pow(1.5f * x[i],2);
 }
 // new plot
 PlotPanel plot = new PlotPanel(2,2);
 pv1 = plot.addPoints(0,0,x,f);
 pv2 = plot.addPoints(0,1,x,f);
 pv3 = plot.addPoints(1,0,x,f);
 pv4 = plot.addPoints(1,1,x,f);
 
 
 // frame setup
 plot.setVisible(true);
 PlotFrame frame = new PlotFrame(plot);
 frame.setSize(800,500);
 frame.add(makeScaleOptionPanel(),BorderLayout.EAST);
 frame.setDefaultCloseOperation(PlotFrame.EXIT_ON_CLOSE);
 frame.setVisible(true);
}

origin: dhale/jtk

 private static void plot(TriMesh tm) {
  TriMeshView tmv = new TriMeshView(tm);
  tmv.setPolysVisible(true);
  tmv.setTriColor(Color.BLACK);
  tmv.setPolyColor(Color.BLUE);
  PlotPanel panel = new PlotPanel();
  panel.setHLabel("x");
  panel.setVLabel("y");
  Mosaic mosaic = panel.getMosaic();
  mosaic.getTile(0,0).addTiledView(tmv);
  PlotFrame frame = new PlotFrame(panel);
  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  frame.setSize(700,700);
  frame.setVisible(true);
 }
}
origin: dhale/jtk

 private static void demo1() {
  int n = 50;
  float[] x1 = randfloat(n);
  float[] x2 = randfloat(n);
  float[] x3 = randfloat(n);

  PlotPanel panel = new PlotPanel(1,1);
  panel.setLimits(-0.1,-0.1,1.1,1.1);
  PointsView pv = panel.addPoints(x1,x2,x3);
  pv.setLineStyle(PointsView.Line.NONE);
  pv.setMarkStyle(PointsView.Mark.FILLED_CIRCLE);
  pv.setTextFormat("%4.2f");
  PlotFrame frame = new PlotFrame(panel);
  frame.setSize(800,800);
  frame.setDefaultCloseOperation(PlotFrame.EXIT_ON_CLOSE);
  frame.setVisible(true);
  //frame.paintToPng(300,6,"junk.png");
 }
}
origin: dhale/jtk

 private static void go() {
  int nx = 101;
  float dx = 0.1f;
  float fx = -0.5f*dx*(float)(nx-1);
  Sampling sx = new Sampling(nx,dx,fx);
  float[] f1 = rampfloat(fx,dx,nx);
  float[] f2 = add(0.5f,sin(f1));

  PlotPanel panel = new PlotPanel(2,1);

  SequenceView sv1 = panel.addSequence(0,0,sx,f1);
  sv1.setColor(Color.RED);

  SequenceView sv2 = panel.addSequence(1,0,sx,f2);
  sv2.setZero(SequenceView.Zero.MIDDLE);
  
  PlotFrame frame = new PlotFrame(panel);
  frame.setDefaultCloseOperation(PlotFrame.EXIT_ON_CLOSE);
  frame.setSize(950,500);
  frame.setVisible(true);
  frame.paintToPng(300,6,"junk.png");
 }
}
origin: dhale/jtk

public PlotFrameDemo() {
 float[] x = rampfloat(0.0f,4.0f*FLT_PI/200.0f,201);
 float[] s = sin(x);
 _plotPanel = new PlotPanel();
 _plotPanel.setTitle("The sine function");
 _plotPanel.setHLabel("x");
 _plotPanel.setVLabel("sin(x)");
 _gridView = _plotPanel.addGrid();
 _pointsView = _plotPanel.addPoints(x,s);
 _pointsView.setStyle("r-o");
 _plotFrame = new PlotFrame(_plotPanel);
 _plotFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 _plotFrame.setVisible(true);
 _plotFrame.add(
  new Label("In either plot or axes, click-drag to zoom, click to unzoom."),
  BorderLayout.NORTH);
}
origin: dhale/jtk

Sampling s2 = new Sampling(n2,0.5,0.25*(n2-1));
PlotPanel panel = new PlotPanel(1,2);
PixelsView pv0 = panel.addPixels(0,0,f);
pv0.setInterpolation(PixelsView.Interpolation.NEAREST);
origin: dhale/jtk

Sampling s2 = new Sampling(n2,0.5,0.25*(n2-1));
PlotPanel panel = new PlotPanel(1,2);
PixelsView pv0 = panel.addPixels(0,0,new float[][][]{f0,f1,f2});
pv0.setInterpolation(PixelsView.Interpolation.NEAREST);
origin: dhale/jtk

PlotPanel panel = new PlotPanel(1,2,orientation);
edu.mines.jtk.mosaicPlotPanel<init>

Javadoc

Constructs a new plot panel with a mosaic of one tile. Uses the default orientation X1RIGHT_X2UP.

Popular methods of PlotPanel

  • addColorBar
    Adds the color bar with specified label.
  • addContours
    Adds a contours view with the function f(x1,x2). Function f(x1,x2) assumed to have uniform sampling.
  • addGrid
    Adds a grid view with specified parameters string. For the format of the parameters string, see edu.
  • addPixels
    Adds a pixels view of the specified sampled function f(x1,x2). Assumes zero first sample values and
  • addPoints
    Adds a view of arrays of (x1,x2) coordinates for multiple plot segments. The lengths of the specifie
  • addSequence
    Adds a sequence view with specified values f(x). Uses default sampling of x = 0, 1, 2, ....
  • getMosaic
    Gets the mosaic. The mosaic contains one or more tiles.
  • remove
  • setHLabel
    Sets the label for the horizontal axis.
  • setHLimits
    Sets limits for the horizontal axis in the specified column. By default, limits are computed automat
  • setLimits
    Sets limits for the both horizontal and vertical axes. By default, limits are computed automatically
  • setLimitsDefault
    Sets default limits for horizontal and vertical axes. This method may be used to restore default lim
  • setLimits,
  • setLimitsDefault,
  • setTitle,
  • setVLabel,
  • setVLimits,
  • add,
  • addBars,
  • addBarsView,
  • addContoursView

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now