Codota Logo
PlotPanel.addSequence
Code IndexAdd Codota to your IDE (free)

How to use
addSequence
method
in
edu.mines.jtk.mosaic.PlotPanel

Best Java code snippets using edu.mines.jtk.mosaic.PlotPanel.addSequence (Showing top 6 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

/**
 * Adds a sequence view with specified sampling and values f(x).
 * @param sx the sampling of the variable x.
 * @param f array of sampled function values f(x).
 * @return the sequence view.
 */
public SequenceView addSequence(Sampling sx, float[] f) {
 return addSequence(0,0,sx,f);
}
origin: dhale/jtk

/**
 * Adds a sequence view with specified values f(x).
 * Uses default sampling of x = 0, 1, 2, ....
 * @param f array of sampled function values f(x).
 * @return the sequence view.
 */
public SequenceView addSequence(float[] f) {
 return addSequence(0,0,f);
}
origin: dhale/jtk

/**
 * Adds a sequence view with specified values f(x).
 * Uses default sampling of x = 0, 1, 2, ....
 * @param f array of sampled function values f(x).
 * @return the sequence view.
 */
public SequenceView addSequence(float[] f) {
 return _panel.addSequence(f);
}
origin: dhale/jtk

/**
 * Adds a sequence view with specified sampling and values f(x).
 * @param s the sampling of the variable x.
 * @param f array of sampled function values f(x).
 * @return the sequence view.
 */
public SequenceView addSequence(Sampling s, float[] f) {
 return _panel.addSequence(s,f);
}
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

private void updateViews() {
 Real1 h = computeImpulseResponse();
 Real1[] ap = computeAmplitudeAndPhaseResponses();
 Real1 a = ap[0];
 Real1 p = ap[1];
 if (_hView==null) {
  _hView = _plotPanelH.addSequence(h.getSampling(),h.getValues());
  _aView = _plotPanelAP.addPoints(0,0,a.getSampling(),a.getValues());
  _pView = _plotPanelAP.addPoints(1,0,p.getSampling(),p.getValues());
 } else {
  _hView.set(h.getSampling(),h.getValues());
  _aView.set(a.getSampling(),a.getValues());
  _pView.set(p.getSampling(),p.getValues());
 }
}
edu.mines.jtk.mosaicPlotPaneladdSequence

Javadoc

Adds a sequence view with specified sampling and values f(x).

Popular methods of PlotPanel

  • <init>
    Constructs a new plot panel with a mosaic of one tile.
  • 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
  • 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

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • setContentView (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JList (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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