Hi!
If I inspect a compile method, I have a tab showing the source code. But I cannot modify the source code of it (well, it does not compile).
Is there a way to edit compile method within the GTInspector?
Maybe using Ring?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi,
Pair programming with Milton at Smalltalks 2015, we (well mostly he)
came with what I call a "matrix sunburst" that shows a sunburst diagram
using a matrix instead of a tree as data source (the clever hack of
Milton was to convert the data in the matrix to a tree with only one
child on any branch after the first one!). The inspiration was taken
from [1] and the idea was from a friend who want to use this kind of
matrix alike sunburst to compare public medicine information.
[1]
http://www.theguardian.com/world/interactive/2012/may/08/gay-rights-united-…
With this I can create thinks like this:
But to get a more readable visualization, I would like to make two things:
a. Increase the empty space between arcs, not like the current radial
strategy, but more like the graphic at [1]. For this we thought in
adding a RTEdge with the same color as the background. How can I
calculate the position of every RTEdge at the final of each arch in the
sunburst?
b. I would like to keep each ring of the same size instead of making
them narrower as the become more away of the center. It this possible?
c. Finally I have created RTSunburstBuilder>>exploreMatrix: aMatrix
coloredWith: aColorPalette in my own image, because I think that is the
best place it can be to be reused in my own visualizations. Is this a
good practice? Can I share this code back with the Roassal project? How?
(hopefully I will not need to learn git and its gratituous complexity).
Cheers,
Offray
Hi,
I am trying to use exampleClassHierarchy in RTCircularTreeMapBuilder for
visualizing some packages and classes.
First, I think the borderWith: should be a fraction of what already is
defined in the examples, otherwise the borders are too think to visualize
anything correctly.
Second, the borderWidth is proportional to the radius of circle. Is this
intended?
To reproduce, here is an example + screenshot:
| b |
b := RTCircularTreeMapBuilder new.
b shape
color: Color transparent;
borderWidth: 0.01;
borderColor: Color black;
if: [ :cls | cls subclasses isEmpty ] fillColor: [ :cls|
(Smalltalk includesKey: (cls name, 'Test') asSymbol) ifTrue: [ Color green ]
ifFalse: [ Color purple ] ].
b
baseradius: 400;
weight: [ :cls | cls withAllSubclasses size].
b explore: RTObject
using: #subclasses.
b build.
^ b view open
[image: Inline image 1]
Hi!
Big big big problem please. Impossible to work. Download an image and do: self halt
to reproduce the problem.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hello,
I am using Roassal2 (StephanEggermont.40) in Pharo 4. The attached picture
displays a common visualization for inference of local ancestry in
population genetics, I have attached what I am getting now with Grapher.
Input data for such visualization is for example:
1:454 2:1488 1:2546 2:5711 1:14253 2:24411 1:31490 0:41585
(those are like Associations with key 0, 1 or 2 and value 454, 1488, ...
etc)
In the attached picture
Min X is 0 and
Max X is 41500
so the X axis (chromosome positions) is rendered in intervals between 10000.
This is what I am trying now (code is commented where I tried to configure
X axis interval)
| b intv |
intv := 0 to: 40000 by: 10000.
b := RTGrapher new.
ds := RTStackedDataSet new.
ds dotShape color: Color red.
ds
points: #(1 2 1 2 1 2 1 0);
x: intv. "????"
ds barShape width: 99; color: Color red.
"b
minX: 0;
maxX: 41500."
b add: ds.
b axisX noLabel; noTick. b axisY noDecimal.
b build.
I have some questions:
1) There is support to add an interval label to the X axis but preserving
the space relation with the real chromosome position (the X axis) for the
data (points in my example = 454 1488 2546 5711 14253 24411 31490 41585)?
2) How to clear the bar filling?
Any advice or help would be really nice.
Hernán
Hi!
Hernán, PhD student from Argentina working with Santiago V., has produced a JavaScript -> MSE translator. This is still a very early effort, but it looks like to work reliably. We were able to produce MSE for a couple of JavaScript applications.
Hernán is working on a webpage for his exporter. He will advertise it soon.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi!
I watched Tudor's looong tutorial on PetitParser and I still can't find
a solution for one of my inputs.
I would like to parse a file that includes HTML templates but it is no
HTML file!.
Since there is no PPHTMLParser and the XMLHTMLParser extends the import
by missing pieces, I decided to write my own PPParser.
I have trouble with nested parts now.
How would I parse something like this?:
.....
.....
<template>
<style>
:host {
display: block;
}
</style>
<ul>
<template items="{{items}}">
<li><span >{{item}}</span></li>
</template>
</ul>
</template>
....
....
template is the node I am interested in but how can I keep trac on which
level I am and if I may expect another /template tag or not?
The file also includes other information and could have more than just
one part with "templates".
Is the "indent" support something I should have a look at?
Doru! Thank you for this great presentation! Exeptt for this problem it
included solutions on all my needs!
Thank you!
Sebastian