User Activity

  • Modified a comment on discussion Help on wxMathPlot

    Hello, I would like to have an x-axis and y-axis where their 0's start at the center of the frame. Also, the increment and decrement of both rulers should be by 30. I have a sample drawing of this as an attachment. How do I translate this in code? Thank you! EDIT: I managed to get this working by providing the limits to the Fit() function, like so: Fit(-180.0, 180.0, -90.0, 90.0);, now I am still unsure about the gap/increment/decrement -- it seems like it is calculated based on the window size.

  • Posted a comment on discussion Help on wxMathPlot

    Update: Resizing the image seemed to helped clear out the error: ./src/gtk/bitmap.cpp(988): assert "rect.x >= 0 && rect.y >= 0 && rect.x + w <= bmpData->m_width && rect.y + h <= bmpData->m_height" failed in GetSubB itmap(): invalid bitmap region However, the ./src/gtk/bitmap.cpp(924): assert "IsOk()" failed in GetWidth(): invalid bitmap Is still there on startup.

  • Posted a comment on discussion Help on wxMathPlot

    I want to load an image using mpBitmapLayer. mpBitmapLayer *bitmapLayer = new mpBitmapLayer(); wxImage *image = new wxImage("/some/path/image.jpg", wxBITMAP_TYPE_JPEG); bitmapLayer->SetBitmap(*image, 0, 0, 100, 100); bitmapLayer->SetAlign(mpALIGN_CENTER); However, I get the following errors: ./src/gtk/bitmap.cpp(924): assert "IsOk()" failed in GetWidth(): invalid bitmap ./src/gtk/bitmap.cpp(988): assert "rect.x >= 0 && rect.y >= 0 && rect.x + w <= bmpData->m_width && rect.y + h <= bmpData->m_height"...

  • Posted a comment on discussion Help on wxMathPlot

    Hello, I would like to have an x-axis and y-axis where their 0's start at the center of the frame. Also, the increment and decrement of both rulers should be by 30. I have a sample drawing of this as an attachment. How do I translate this in code? Thank you!

  • Posted a comment on discussion Help on wxMathPlot

    Thank you, that worked. :)

  • Posted a comment on discussion Help on wxMathPlot

    The title pretty much sums up my question. If I want to plot latitude/longitude, I would like to have the Earth's 2D map under the plot as a background image. Is this possible?

View All

Personal Data

Username:
lubeskih
Joined:
2021-05-26 08:27:03

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB