Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtchart-dev] GSoC 2020:Creating bitmaps with no restriction on resolution and display size

Hi Yash,

you could start with the data sets, contained in the "extensions.test" package.
The R script export as well as the template SVG export shall support the following chart types:

* Line Chart
* Scatter Chart (subtype of Line Chart)
* Step Chart (subtype of Line Chart - will be added probably)
* Bar Chart

So, three templates are needed. You could check this via instanceof.
Have a look at the timeline to prepare your proposal:

https://summerofcode.withgoogle.com/how-it-works/#timeline


Best,
Philip


Am 24.02.20 um 17:25 schrieb Yash Bharatiya:
Hi,
I think lines are getting displayed when exporting line series as dots because in RScriptHandler class it is mentioned in plot() that type ='l',
to plot it as dots I think we need to set type as 'p' which will then only show the data series as points.

About BarChart export in R I found that there is already a printBarPlot method for BarChart similar to that of LineChart,
Is there a need for other method to export BarCharts.

Also when creating SVG templates do we need separate templates for different plots or we could just use 
"instanceOf" to check type of chart and make separate methods for printing SVG code in file. 

Thanks,
Yash


On Fri, 21 Feb 2020 at 14:27, Philip Wenig <philip.wenig@xxxxxxxxxxxxx> wrote:
Hi Yash,

the R script export works fine. Improvements are needed, when line series are added without lines (only dots). These are displayed as connected lines in the script. Moreover, the bar chart export option needs to be added.


Best,
Philip

Am 21.02.20 um 09:47 schrieb Yash Bharatiya:
Hi,

Also about Extending the R-Script Export ,
What all options need Improvement?
I found out these are general problems encountered when exporting plots as R-Script-
  • Anti-aliasing is not activated in Windows R (this does not apply to Linux or Mac)
  • When increasing the resolution the labels automatically decrease and become unreadable                                                                                       
One way to make the labels readable is to add additional inbuilt R function svg()
in the RScriptExportHandler Class.
for e.g.-
svg(filename="Std_SVG.svg", 
    width=5, 
    height=4, 
    pointsize=12)

On Fri, 21 Feb 2020 at 12:27, Philip Wenig <philip.wenig@xxxxxxxxxxxxx> wrote:
Hi Yash,

yep, I would like to enable this in 2 steps:

1) Add the *.svg template export, so that people can export the chart to various formats via Inkscape.
2) If exporting the template works fine, we could try to include the advanced export option via SVG.


Best,
Philip

Am 21.02.20 um 07:52 schrieb yash Bharatiya:
Hi,
When creating bitmaps the main problem when changing resolution of the *.bmp file is that it loses its quality because of which datasets are not visible .
Is it possible that first we create .svg file of desired resolution and then convert it into .bmp in this way quality of display  is preserved.
One way to convert to .bmp would be as follows:
  Bitmap.Config conf = Bitmap.Config.ARGB_8888; 
          Bitmap bitmap = Bitmap.createBitmap(50, 50, conf);

          // Get a Canvas for the Bitmap
          Canvas  canvas = new Canvas(bitmap);

          // Read the SVG file
          SVG svg = SVGParser.getSVGFromInputStream(inputstream);
          // There are other ways to read an SVG file. See the SVGParser class for the others.

          // Get a Picture from the SVG and render it to the Canvas
          canvas.drawPicture(SVG.getPicture());

_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/swtchart-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/swtchart-dev

_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/swtchart-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/swtchart-dev

_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/swtchart-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~

Back to the top