Hello I use TChart V7.12 Vcl.
I use scatter plots with a lot of points. I want to optimize the the points size so that I get beauty plots.
Unfortunately in TeeChart I must configure the point radius and not the diameter.
So I get for a RectShape without border the sizes:
2x2 4x4 6x6 8x8 etc.
I miss 3x3 5x5 7x7 etc.
The trick I use now to get this missing sizes is, to alter the border-visibility.
because a border of width 1 increaseses the pixel-rect by 1.
This works fine if the border color is the fill color.
But some times I need a transparent fill color to see the point desity of many overlapping point areas
This will will work only for uneven point sizes.
(It makes no sense to "draw" a transparent area with no border - is see nothing.)
So I miss the feature to draw f.e. a 6x6 rect-point (only with border).
Dont know how to preseve backwards compatibiliy in code - may be with
a bool Property "SizeDefinesDiameterAndNotRadius" or so
or simpler the Sizes (horiz.vert.) are floats so that f.e. size 5.5 woud configure the new feature.
Besise - is the bug in the plot position of circle-points fixed?
Bye
Andreas
To raw point size increment
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: To raw point size increment
Hi Andreas,
Is that what you are looking for?
Thanks in advance.
I can draw 6x6 transparent pointers like this:So I miss the feature to draw f.e. a 6x6 rect-point (only with border).
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var Series1: TPointSeries;
begin
Series1:=TPointSeries.Create(Self);
Series1.FillSampleValues;
Series1.Pointer.Brush.Style:=bsClear;
Series1.Pointer.HorizSize:=3;
Series1.Pointer.VertSize:=3;
Series1.Pointer.Pen.Color:=Series1.Color;
Chart1.View3D:=False;
Chart1.AddSeries(Series1);
end;
I don't think this has changed across TeeChart versions. Also notice that HorizSize and VertSize represent pixels so I'm afraid it's not possible to plot half a pixel. Anyway, I'll add your request to the wish-list to be investigated for future releases (TV52015633).Dont know how to preseve backwards compatibiliy in code - may be with
a bool Property "SizeDefinesDiameterAndNotRadius" or so
or simpler the Sizes (horiz.vert.) are floats so that f.e. size 5.5 woud configure the new feature.
Is that what you discussed here with Yeray?Besise - is the bug in the plot position of circle-points fixed?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: To raw point size increment
Narcís wrote:Hi Andreas,
I can draw 6x6 transparent pointers like this:So I miss the feature to draw f.e. a 6x6 rect-point (only with border).
Is that what you are looking for?Code: Select all
uses Series; procedure TForm1.FormCreate(Sender: TObject); var Series1: TPointSeries; begin Series1:=TPointSeries.Create(Self); Series1.FillSampleValues; Series1.Pointer.Brush.Style:=bsClear; Series1.Pointer.HorizSize:=3; Series1.Pointer.VertSize:=3; Series1.Pointer.Pen.Color:=Series1.Color; Chart1.View3D:=False; Chart1.AddSeries(Series1); end;
For this configuration you get an 7x7 rect and NOT 6x6 !
Diameter = Radius * 2 +1 Pixel
One can NEVER create a rectangle with even diameter!
I think this it a big and unnecessary restriction of TeeChart.
I don't think this has changed across TeeChart versions. Also notice that HorizSize and VertSize represent pixels so I'm afraid it's not possible to plot half a pixel. Anyway, I'll add your request to the wish-list to be investigated for future releases (TV52015633).Dont know how to preseve backwards compatibiliy in code - may be with
a bool Property "SizeDefinesDiameterAndNotRadius" or so
or simpler the Sizes (horiz.vert.) are floats so that f.e. size 5.5 woud configure the new feature.
Fine!Is that what you discussed here with Yeray?Besise - is the bug in the plot position of circle-points fixed?
Thanks in advance.Yes this is the bug !
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: To raw point size increment
Hi Andreas,
Anyway, this will be investigated for TV52015633.
Thanks in advance.
Sorry, yes. I checked it better now with this image:For this configuration you get an 7x7 rect and NOT 6x6 !
Diameter = Radius * 2 +1 Pixel
One can NEVER create a rectangle with even diameter!
I think this it a big and unnecessary restriction of TeeChart.
Anyway, this will be investigated for TV52015633.
Ok, I'm afraid this was not added in the bug-list. I guess Yeray was waiting for your reply to your his last post. As he suggested, this is definitely better using GDI+ or OpenGL as antialias is performed. Have you tried using GDI+ canvas? GDI+ has been vastly improved for last TeeChart VCL release. You may download the fully functional evaluation version at http://www.steema.com/evaluation/vcl.Yes this is the bug !
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |