mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-04 22:03:29 -06:00
.Scatter: Changed AddSeries to show marks only if width > 1
git-svn-id: svn://ultimatepp.org/upp/trunk@2416 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
88f4278bac
commit
ca70b73dd1
1 changed files with 6 additions and 1 deletions
|
|
@ -395,7 +395,10 @@ Scatter &Scatter::AddSeries(Vector<XY> & points,const String& legend,const bool&
|
|||
vPThickness.Add(thickness);
|
||||
vLegend.Add(legend);
|
||||
vMarkColors.Add(pcolor);
|
||||
vShowMark.Add(true);
|
||||
if (width <= 1)
|
||||
vShowMark.Add(false);
|
||||
else
|
||||
vShowMark.Add(true);
|
||||
vMarkStyles.Add(CIRCLE);
|
||||
vPPrimaryY.Add(true);
|
||||
vPSequential.Add(sequentialXAll);
|
||||
|
|
@ -1035,6 +1038,8 @@ void Scatter::Scroll(double factorX, double factorY)
|
|||
|
||||
void Scatter::MouseWheel(Point, int zdelta, dword)
|
||||
{
|
||||
if (zdelta == 0)
|
||||
return;
|
||||
double scale = zdelta > 0 ? zdelta/100. : -100./zdelta;
|
||||
Zoom(scale);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue