Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8393251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:44:01+00:00 2026-06-09T19:44:01+00:00

I implemented a plot using androidplot. Here are some snippets: .xml <com.androidplot.xy.XYPlot android:id=@+id/plot android:layout_width=fill_parent

  • 0

I implemented a plot using androidplot. Here are some snippets:

.xml

<com.androidplot.xy.XYPlot
        android:id="@+id/plot"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginBottom="5px"
        android:layout_marginLeft="5px"
        android:layout_marginRight="5px"
        android:layout_marginTop="10px"
        title="Dynamic Plot" />

code

private XYPlot plot;
// DynamicSerie implements XYSerie
private DynamicSerie XSerie, YSerie;
...
// this thread is just for redrawing
private class PlotTimerTask extends TimerTask {
    @Override
    public void run() {
        try{
            plot.postRedraw();
        }catch(InterruptedException e){
            e.printStackTrace();
        }
    }
}
...
// most if this init looks just like in Androidplot.com tutorial

link to tutorial

plot = (XYPlot) findViewById(R.id.plot);
XSerie = new DynamicSerie(DataSeries.X_VEC, "X Axis Acc");
YSerie = new DynamicSerie(DataSeries.Y_VEC, "Y Axis Acc");
LineAndPointFormatter f1 = new LineAndPointFormatter(Color.rgb(0, 0, 200), null, Color.rgb(0, 0, 80));
f1.getFillPaint().setAlpha(220);
plot.addSeries(XSerie, f1);
plot.addSeries(YSerie, new LineAndPointFormatter(Color.rgb(0, 0, 0), null, Color.rgb(0, 80, 0)));
plot.setGridPadding(5, 0, 5, 0);
...
@Override
protected void onPause() {
    timerTask.cancel();
    timer.purge();
    super.onPause();
}
@Override
protected void onResume() {
    timerTask = new PlotTimerTask();
    timer.schedule(timerTask, 0, Constants.PLOT_REFRESH_RATE);
    super.onResume();
}

And this is what I get in the end:
output plot

I tried manipulating XYPlot‘s and LineAndPointFormatter‘s options (both in java code and xml) – colors, fills, paints – everything I could think of. And the resulting plot was always blue like this. If you look close enough you will see that behind it there is a properly formatted plot – with axes, legend, data series, etc. But I do not know how to get rid of this blue overlay!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:44:02+00:00Added an answer on June 9, 2026 at 7:44 pm

    plot.disableAllMarkup(). That’s it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I went through the tutorial here: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application , and I can get a graph
I implemented some code using backbone.js in Asp.NEt MVC3 and found backbone.js very helpful.
Here is the question's plot: suppose I have some abstract classes for objects, let's
I'm using the core-plot library to do some plotting, and would like to implement
I am trying to plot some graphs using Java and R (JRI and Rengine).
I implemented the exception filter like here: http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling And registered it globally, like microsoft
I have successfully implemented code to plot multiple locations on google maps dynamically. Solution:
I'm trying to implement some sort of 'just-for-me' game engine and the problem's plot
I've implemented Bresenham's (midpoint) algorithm to plot circles, and everything went well (C++ and
I'm using JFreeChart and want to plot a series of data using a line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.