Grasshopper

algorithmic modeling for Rhino

[solved] how to add text label for data points/cells on 3D chart and bar chart?

I wonder if there's a way to add text label for data points/cells on 3D chart and bar chart.

Sun path diagram can do this as the sun information and sun position can be used for the text tag component ...

Thanks!

Views: 3212

Replies are closed for this discussion.

Replies to This Discussion

Hi Chris,

i see it is working now. Thanks.

But your comment was missing. Sometimes they are interesting and important. So if there is some explanation, go ahead again. If it just only to say that it is fixed, so ... thanks.

-A.

Huh. Somehow my whole comment did not make it up there.  I was just saying that now you are able to use a comfort model any time that you connect up data that is temperature.

-Chris

Hi Chris,

You are probably tired of this, but i've found another issue with the list of low/high bounds in the legendPar component.

In the last example you uploaded both axis start at -10 and end at 30. The scales look correct for the data, but the text on the axis is not.

I tried to play with the list values but with partial sucess. The values i gave were: -10,0,0,0 for the lowBound and 30,500,500,500 for the highBound. But then one of the temperatures is plotet wrongly.

-A.

Abraham,

Thank you finding this bug!  This was an old one that would have messed things up even before the ability to accept data trees of legendPar.  It resulted from the fact that the epw data was in units of "C" and the UTCI component was in units of "°C".  It has been fixed in the attached file and in the version of the bar chart that I just put on the github.

-Chris

Attachments:

Great. Thanks.

-A.

Thank you very much, Chris, for adding the this convenient new function for bar chart!

- J.

Grasshope,

I added a dataPts output to the 3D chart so that you can now label it like the sun positions in the sunPath:

See how to label in the attached file.

-Chris

Attachments:

Thank you very much, Chris, as usual, for this great update! (rushing to my computer to update LB ...)

Dear Chris,

It seems the 3D chart doesn't work for an analysis period of just 2 days (see image 2 below) and the visualization is a bit weird for just one day which I assume is related how mesh is created in Rhino (see image 1), and the value label works fine with analysis period of 3 days or longer (see image 3).


Hope you can advise!

Thanks!

Attachments:

Grasshope,

I can guarantee that a good-looking colored chart will always be produced if you set the Z-Scale of the chart to 0.  I have tried to add in some extra code to fix the cases that you brought up here for 1 and 2 day intervals.  Getting the colors of the "webbing" surfaces (in between the horizontal surfaces) to match exactly is proving to be a huge mental strain but what I have here should be good enough that most people should not notice it unless they are looking for it.  If you are really bugged by the slightly different colors, feel free to edit lines 219-239 of the python code.  If anyone figures it out, we can credit you and change the code.

-Chris

Attachments:

Thank you very much, Chris, for the fix!

I have limited Python programming experience. But I assume I need to know how to create mesh in Rhino before I can "tamper" your source code ...

Hi,

The method of adding text label on 3D chart does not work when a condStatement is apply. Is there a way to filter the text list (numbers) to match the condStatement dataPts?

Thanks,

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service