puhep / pudb2

R&D Database for CMS FPix Phase II at Purdue
http://inky.physics.purdue.edu/cmsfpix///phase_2/
0 stars 1 forks source link

plot sensors on picture #12

Closed gneeser closed 7 years ago

gneeser commented 7 years ago

Eventually, I'd like to automatically generate a picture for each test which shows the location of each element on the support structure, whether the object be a sensor, heater, or mock module.

To do this, I'll need an official background to begin with each time, and I'll also need to know the scale of the support structures. If this will change from structure to structure, then it quickly becomes much more complicated, but the situation could be remedied if the number of structures is kept low and we changed the background pic for each structure.

gneeser commented 7 years ago

Sensors are now automatically plotted on upload, but I still need a scale for the support structures and a background image.

AndySpring commented 7 years ago

Since the inlet and outlet do not have positions as defined in our graph, could you make them in a default position or just have the system ignore the sensor if no x or y values are given? Now we cant see the graph of the sensors because T10 and T11 do not have positions.

position error

gneeser commented 7 years ago

Ah, yes, I can do that. I should have done that in the first place. I'll let you know when I push out the change.

gneeser commented 7 years ago

Empty values are now ignored. Also note that I have hardcoded the graph to be 15x15 cm with the origin at the bottom left-hand corner as per @NickHinton's request, so the plot will not show negative values. I can change this if need be.

gneeser commented 7 years ago

Also, I can hard-code some objects such as the inlet and outlet if you would like. Just let me know where and what you want them to look like

NickHinton commented 7 years ago

Inlet and outlet default positions would be nice. [7.5,17] and [7.5,-2].