Skip to content

Serial plotter issue #4311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pierrotm777 opened this issue Dec 16, 2015 · 8 comments
Closed

Serial plotter issue #4311

pierrotm777 opened this issue Dec 16, 2015 · 8 comments
Assignees
Labels
feature request A request to make an enhancement (not a bug fix) Type: Duplicate Another item already exists for this topic
Milestone

Comments

@pierrotm777
Copy link

serial plotter

We would see only five squares on the right top and not all this line of squares !

@facchinm
Copy link
Member

Hi @pierrotm777 , could you please paste here a sketch that produces that misbehaviour? Thanks

@pierrotm777
Copy link
Author

Sorry , my code was bad and the plotter run well but the 5 th square use the same color as the first !!!!
plot

This is my code

#ifdef SERIALPLOTTER /* You can read the speed, batterie and throttle pulse with the Serial Plotter (IDE >= 1.6.6) */
Serial << vitesse1 << "," << vitesse2 << "," << GetExternalVoltage();
if(RxChannelPulseMotor.available())
{
Serial << "," << Width_us << "," << WidthAux_us << endl;
}else{
Serial << endl;
}

#endif

@pierrotm777
Copy link
Author

Is it possible to have the option to add text for each plot in the boottom ?
plot2

@pierrotm777
Copy link
Author

To have the real value for each plot on the vertical axe would be cool !

@facchinm
Copy link
Member

I believe that the four colours limit and the missing labels are all known "issues" and @henningpohl is on them.
Adding @agdl to the thread since he surely knows more

@agdl
Copy link
Member

agdl commented Dec 16, 2015

Hi, no at the moment labels are not available. I opened an issue (#4180) about this fact because it will be really cool to implement it. So I'm closing this marking it as duplicate!

@agdl agdl closed this as completed Dec 16, 2015
@agdl agdl added the Type: Duplicate Another item already exists for this topic label Dec 16, 2015
@agdl agdl added this to the Release 1.6.7 milestone Dec 16, 2015
@agdl agdl self-assigned this Dec 16, 2015
@agdl agdl added the feature request A request to make an enhancement (not a bug fix) label Dec 16, 2015
@pierrotm777
Copy link
Author

I have found a the way for change number of different plot's color into the file theme.txt
plotting.graphcolor.size = 5
plotting.graphcolor.00 = #2c7bb6
plotting.graphcolor.01 = #fdae61
plotting.graphcolor.02 = #d7191c
plotting.graphcolor.03 = #abd9e9
plotting.graphcolor.04 = #fbd9e9

@pierrotm777
Copy link
Author

Some time , the console return me these errors

Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException
at processing.app.helpers.CircularBuffer.min(CircularBuffer.java:42)
at processing.app.SerialPlotter$GraphPanel.computeBounds(SerialPlotter.java:90)
at processing.app.SerialPlotter$GraphPanel.paintComponent(SerialPlotter.java:119)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent.paint(JComponent.java:1042)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
at java.awt.Container.paint(Container.java:1975)
at java.awt.Window.paint(Window.java:3912)
at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request to make an enhancement (not a bug fix) Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

3 participants