@@ 677-680 (lines=4) @@ | ||
674 | """ |
|
675 | ||
676 | descriptors = [] * len(dynamic); |
|
677 | ||
678 | # Check from the end for obtaining result |
|
679 | for index_dyn in range(0, len(dynamic[0]), 1): |
|
680 | if ((ignore is not None) and (index_dyn in ignore)): |
|
681 | continue; |
|
682 | ||
683 | time_stop_simulation = len(dynamic) - 1; |
|
@@ 656-659 (lines=4) @@ | ||
653 | waiting_differential = False; |
|
654 | ||
655 | else: |
|
656 | waiting_differential = True; |
|
657 | ||
658 | return number_oscillations; |
|
659 | ||
660 | ||
661 | def allocate_sync_ensembles(dynamic, tolerance = 0.1, threshold = 1.0, ignore = None): |
|
662 | """! |
|
@@ 812-816 (lines=5) @@ | ||
809 | axes.plot(data[item][0], 0.0, color = color, marker = marker_descr); |
|
810 | ||
811 | if (dimension == 2): |
|
812 | if (data is None): |
|
813 | axes.plot(item[0], item[1], color = color, marker = marker_descr); |
|
814 | else: |
|
815 | axes.plot(data[item][0], data[item][1], color = color, marker = marker_descr); |
|
816 | ||
817 | elif (dimension == 3): |
|
818 | if (data is None): |
|
819 | axes.scatter(item[0], item[1], item[2], c = color, marker = marker_descr); |
|
@@ 791-795 (lines=5) @@ | ||
788 | raise NameError('Impossible to represent clusters due to number of specified colors.'); |
|
789 | ||
790 | fig = plt.figure(); |
|
791 | ||
792 | if (axes is None): |
|
793 | # Check for dimensions |
|
794 | if ((dimension) == 1 or (dimension == 2)): |
|
795 | axes = fig.add_subplot(111); |
|
796 | elif (dimension == 3): |
|
797 | axes = fig.gca(projection='3d'); |
|
798 | else: |
@@ 330-333 (lines=4) @@ | ||
327 | @return (fig) Figure where clusters are shown. |
|
328 | ||
329 | """ |
|
330 | def __draw_canvas_cluster(self, ax, dimension, cluster_descr): |
|
331 | cluster = cluster_descr.cluster; |
|
332 | data = cluster_descr.data; |
|
333 | marker = cluster_descr.marker; |
|
334 | markersize = cluster_descr.markersize; |
|
335 | color = cluster_descr.color; |
|
336 | ||
@@ 323-327 (lines=5) @@ | ||
320 | """! |
|
321 | @brief Draw canvas cluster descriptor. |
|
322 | ||
323 | @param[in] ax (Axis): Axis of the canvas where canvas cluster descriptor should be displayed. |
|
324 | @param[in] dimension (uint): Canvas dimension. |
|
325 | @param[in] cluster_descr (canvas_cluster_descr): Canvas cluster descriptor that should be displayed. |
|
326 | ||
327 | @return (fig) Figure where clusters are shown. |
|
328 | ||
329 | """ |
|
330 | def __draw_canvas_cluster(self, ax, dimension, cluster_descr): |