Roassal: Why the grey outline?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Roassal: Why the grey outline?

hernanmd

The attached capture is the one implemented by the method #exampledoubleCurves.

If you zoom the image you will notice the grey edge of each green and blue line. The same happens in #exampleVerticalAndHorizontalLines

Is there a way to remove it the grey around each line?

Cheers,

Hernán


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

grey_line.png (14K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Roassal: Why the grey outline?

abergel
Hi Hernán,

The attached capture is the one implemented by the method #exampledoubleCurves.

If you zoom the image you will notice the grey edge of each green and blue line. The same happens in #exampleVerticalAndHorizontalLines

Is there a way to remove it the grey around each line?

The grey outline are actually the dots.

You need to write “ds noDot” before calling “points:”
Here is an example:

| b ds |
b := RTGrapher new.

b extent: 300 @ 200.

ds := RTData new.
ds noDot.
ds points: (-50 to: 100 by: 0.1).
ds y: [ :x | (0.1 * x) sin  ].
ds noDot.
ds interaction popupText: 'sinus'.
ds connectColor: Color blue.
b add: ds.

ds := RTData new.
ds noDot.
ds points: (-50 to: 100 by: 0.1).
ds y: [ :x | (0.1 * x) cos  ].
ds noDot.
ds interaction popupText: 'cosinus'.
ds connectColor: Color red.
b add: ds.

b addDecorator: RTHorizontalTickLineDecorator new.
b addDecorator: RTVerticalTickLineDecorator new.

^ b
Which produces:

I have updated these example. Indeed, there is no good reason of having the dots.

Alexandre




Cheers,

Hernán

<grey_line.png>_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal: Why the grey outline?

hernanmd
Hi Alex,

Thank you for your help on this.
Though I still don't get why there are dots behind the lines by default? Any particular reason?

Cheers

Hernán


2017-02-17 19:46 GMT-03:00 Alexandre Bergel <[hidden email]>:
Hi Hernán,

The attached capture is the one implemented by the method #exampledoubleCurves.

If you zoom the image you will notice the grey edge of each green and blue line. The same happens in #exampleVerticalAndHorizontalLines

Is there a way to remove it the grey around each line?

The grey outline are actually the dots.

You need to write “ds noDot” before calling “points:”
Here is an example:

| b ds |
b := RTGrapher new.

b extent: 300 @ 200.

ds := RTData new.
ds noDot.
ds points: (-50 to: 100 by: 0.1).
ds y: [ :x | (0.1 * x) sin  ].
ds noDot.
ds interaction popupText: 'sinus'.
ds connectColor: Color blue.
b add: ds.

ds := RTData new.
ds noDot.
ds points: (-50 to: 100 by: 0.1).
ds y: [ :x | (0.1 * x) cos  ].
ds noDot.
ds interaction popupText: 'cosinus'.
ds connectColor: Color red.
b add: ds.

b addDecorator: RTHorizontalTickLineDecorator new.
b addDecorator: RTVerticalTickLineDecorator new.

^ b
Which produces:

I have updated these example. Indeed, there is no good reason of having the dots.

Alexandre




Cheers,

Hernán

<grey_line.png>_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal: Why the grey outline?

abergel
> Thank you for your help on this.

No problem!

> Though I still don't get why there are dots behind the lines by default? Any particular reason?

There is no particular reason. I have never questioned this since it is rare when I use both dots and lines.
One reason against having the dots in front of the lines is the reduced accuracy of the data point representation. Having the line in front of the dot is more accurate. But this is something that should be configurable.
Update Roassal and you will have it. Here is an example:

-=-=-=-=-=-=
b := RTGrapher new.
ds := RTData new.
ds dotShape color: Color red; size: 10.
ds points: (Collection withAllSubclasses copyFrom: 1 to: 10).
ds y: #numberOfMethods.
ds connectColor: Color blue.
ds moveDotInFront. “<<< The new thing"
b add: ds.

b
-=-=-=-=-=-=

Cheers,
Alexandre


>
> Cheers
>
> Hernán
>
>
> 2017-02-17 19:46 GMT-03:00 Alexandre Bergel <[hidden email]>:
> Hi Hernán,
>
>> The attached capture is the one implemented by the method #exampledoubleCurves.
>>
>> If you zoom the image you will notice the grey edge of each green and blue line. The same happens in #exampleVerticalAndHorizontalLines
>>
>> Is there a way to remove it the grey around each line?
>
> The grey outline are actually the dots.
>
> You need to write “ds noDot” before calling “points:”
> Here is an example:
>
> | b ds |
> b := RTGrapher new.
>
> b extent: 300 @ 200.
>
> ds := RTData new.
> ds noDot.
> ds points: (-50 to: 100 by: 0.1).
> ds y: [ :x | (0.1 * x) sin  ].
> ds noDot.
> ds interaction popupText: 'sinus'.
> ds connectColor: Color blue.
> b add: ds.
>
> ds := RTData new.
> ds noDot.
> ds points: (-50 to: 100 by: 0.1).
> ds y: [ :x | (0.1 * x) cos  ].
> ds noDot.
> ds interaction popupText: 'cosinus'.
> ds connectColor: Color red.
> b add: ds.
>
> b addDecorator: RTHorizontalTickLineDecorator new.
> b addDecorator: RTVerticalTickLineDecorator new.
>
> ^ b
> Which produces:
> <Screen Shot 2017-02-17 at 7.44.55 PM.png>
>
> I have updated these example. Indeed, there is no good reason of having the dots.
>
> Alexandre
>
>
>
>>
>> Cheers,
>>
>> Hernán
>>
>> <grey_line.png>_______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev